|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.policy.basic.AbstractEntityAdjunct
brooklyn.enricher.basic.AbstractEnricher
brooklyn.enricher.basic.SensorPropagatingEnricher
public class SensorPropagatingEnricher extends AbstractEnricher
an enricher policy which just listens for the target sensor(s) on a child entity and passes it up
Field Summary | |
---|---|
static Logger |
log
|
Fields inherited from class AbstractEnricher | |
---|---|
leftoverProperties |
Fields inherited from class AbstractEntityAdjunct | |
---|---|
_subscriptionTracker, entity, id, name |
Constructor Summary | |
SensorPropagatingEnricher(Entity source, Sensor... sensors)
|
|
SensorPropagatingEnricher(Entity source, java.util.Collection sensors)
|
Method Summary | |
---|---|
SensorPropagatingEnricher
|
addToEntityAndEmitAll(AbstractEntity host)
convenience, to be called by the host |
void
|
emitAllAttributes()
useful post-addition to emit current values |
void
|
emitAllAttributes(boolean includeNullValues)
|
static SensorPropagatingEnricher
|
newInstanceListeningTo(Entity source, Sensor... includes)
|
static SensorPropagatingEnricher
|
newInstanceListeningToAllSensors(Entity source)
|
static SensorPropagatingEnricher
|
newInstanceListeningToAllSensorsBut(Entity source, Sensor... excludes)
|
void
|
onEvent(SensorEvent event)
|
void
|
setEntity(EntityLocal entity)
|
Methods inherited from class AbstractEnricher | |
---|---|
configure |
Methods inherited from class AbstractEntityAdjunct | |
---|---|
check, destroy, getAllSubscriptions, getId, getManagementContext, getName, getSubscriptionTracker, isDestroyed, isRunning, setEntity, setId, setName, subscribe, subscribeToChildren, subscribeToMembers, unsubscribe, unsubscribe |
Field Detail |
---|
public static final Logger log
Constructor Detail |
---|
public SensorPropagatingEnricher(Entity source, Sensor... sensors)
public SensorPropagatingEnricher(Entity source, java.util.Collection sensors)
Method Detail |
---|
public SensorPropagatingEnricher addToEntityAndEmitAll(AbstractEntity host)
public void emitAllAttributes()
public void emitAllAttributes(boolean includeNullValues)
public static SensorPropagatingEnricher newInstanceListeningTo(Entity source, Sensor... includes)
public static SensorPropagatingEnricher newInstanceListeningToAllSensors(Entity source)
public static SensorPropagatingEnricher newInstanceListeningToAllSensorsBut(Entity source, Sensor... excludes)
public void onEvent(SensorEvent event)
public void setEntity(EntityLocal entity)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.