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 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)

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)

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

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)


newInstanceListeningToAllSensors

public static SensorPropagatingEnricher newInstanceListeningToAllSensors(Entity source)


newInstanceListeningToAllSensorsBut

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


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.