Brooklyn

brooklyn.enricher.basic
[Java] Class SensorPropagatingEnricher

java.lang.Object
  brooklyn.policy.basic.AbstractEntityAdjunct
      brooklyn.enricher.basic.AbstractEnricher
          brooklyn.enricher.basic.SensorPropagatingEnricher
All Implemented Interfaces:
SensorEventListener

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 AbstractEntityAdjunct
_subscriptionTracker, adjunctType, configsInternal, entity, execution, id, leftoverProperties, name
 
Constructor Summary
SensorPropagatingEnricher(Entity source, Sensor... sensors)

SensorPropagatingEnricher(Entity source, java.util.Collection sensors)

SensorPropagatingEnricher(Entity source, java.util.Map sensors)

 
Method Summary
SensorPropagatingEnricher addToEntityAndEmitAll(Entity 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 newInstanceListeningTo(Entity source, java.util.Map sensors)

@deprecated since 0.6.0 use newInstanceRenaming(Entity, Map) which does the same thing

static SensorPropagatingEnricher newInstanceListeningToAllSensors(Entity source)

static SensorPropagatingEnricher newInstanceListeningToAllSensorsBut(Entity source, Sensor... excludes)

static SensorPropagatingEnricher newInstanceRenaming(Entity source, java.util.Map sensors)

listens to sensors from source, propagates them here renamed according to the map

void onEvent(SensorEvent event)

void setEntity(EntityLocal entity)

 
Methods inherited from class AbstractEnricher
getEnricherType
 
Methods inherited from class AbstractEntityAdjunct
check, configure, configure, destroy, doReconfigureConfig, getAdjunctType, getAllConfig, getAllSubscriptions, getConfig, getConfigMap, getId, getManagementContext, getName, getSubscriptionTracker, init, isDestroyed, isLegacyConstruction, isRunning, setConfig, setEntity, setId, setManagementContext, setName, subscribe, subscribeToChildren, subscribeToMembers, toString, unsubscribe, unsubscribe
 

Field Detail

log

public static final Logger log


 
Constructor Detail

SensorPropagatingEnricher

public SensorPropagatingEnricher(Entity source, Sensor... sensors)


SensorPropagatingEnricher

public SensorPropagatingEnricher(Entity source, java.util.Collection sensors)


SensorPropagatingEnricher

public SensorPropagatingEnricher(Entity source, java.util.Map sensors)


 
Method Detail

addToEntityAndEmitAll

public SensorPropagatingEnricher addToEntityAndEmitAll(Entity host)
convenience, to be called by the host


emitAllAttributes

public void emitAllAttributes()
useful post-addition to emit current values


emitAllAttributes

public void emitAllAttributes(boolean includeNullValues)


newInstanceListeningTo

public static SensorPropagatingEnricher newInstanceListeningTo(Entity source, Sensor... includes)


newInstanceListeningTo

public static SensorPropagatingEnricher newInstanceListeningTo(Entity source, java.util.Map sensors)
deprecated:
since 0.6.0 use newInstanceRenaming(Entity, Map) which does the same thing


newInstanceListeningToAllSensors

public static SensorPropagatingEnricher newInstanceListeningToAllSensors(Entity source)


newInstanceListeningToAllSensorsBut

public static SensorPropagatingEnricher newInstanceListeningToAllSensorsBut(Entity source, Sensor... excludes)


newInstanceRenaming

public static SensorPropagatingEnricher newInstanceRenaming(Entity source, java.util.Map sensors)
listens to sensors from source, propagates them here renamed according to the map


onEvent

@Override
@SuppressWarnings({ "unchecked", "rawtypes" })
public void onEvent(SensorEvent event)


setEntity

public void setEntity(EntityLocal entity)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.