Enrichers.builder()
public class SensorPropagatingEnricher extends AbstractEnricher implements SensorEventListener<java.lang.Object>
Enrichers.builder().propagating(XXX).from(source).build()
if need to sub-class
AbstractEntityAdjunct.AdjunctTagSupport
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log
Deprecated.
|
SUPPRESS_DUPLICATES
NOOP
Constructor and Description |
---|
SensorPropagatingEnricher(Entity source,
java.util.Collection<Sensor<?>> sensors)
Deprecated.
since 0.7.0; use
Enrichers.builder() |
SensorPropagatingEnricher(Entity source,
java.util.Map<? extends Sensor<?>,? extends Sensor<?>> sensors)
Deprecated.
|
SensorPropagatingEnricher(Entity source,
Sensor<?>... sensors)
Deprecated.
since 0.7.0; use
Enrichers.builder() |
Modifier and Type | Method and Description |
---|---|
SensorPropagatingEnricher |
addToEntityAndEmitAll(Entity host)
Deprecated.
convenience, to be called by the host
|
void |
emitAllAttributes()
Deprecated.
useful post-addition to emit current values
|
void |
emitAllAttributes(boolean includeNullValues)
Deprecated.
|
static SensorPropagatingEnricher |
newInstanceListeningTo(Entity source,
Sensor<?>... includes)
Deprecated.
|
static SensorPropagatingEnricher |
newInstanceListeningToAllSensors(Entity source)
Deprecated.
|
static SensorPropagatingEnricher |
newInstanceListeningToAllSensorsBut(Entity source,
Sensor<?>... excludes)
Deprecated.
|
static SensorPropagatingEnricher |
newInstanceRenaming(Entity source,
java.util.Map<? extends Sensor<?>,? extends Sensor<?>> sensors)
Deprecated.
since 0.7.0; use
Enrichers.builder() |
void |
onEvent(SensorEvent<java.lang.Object> event)
Deprecated.
The
SensorEvent handler method. |
void |
setEntity(EntityLocal entity)
Deprecated.
|
getEnricherType, getRebindSupport
config, configure, destroy, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, setName, tags, toString
getCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllConfig, getConfig, getId, getName, setConfig
getUniqueTag, isDestroyed, isRunning
getCatalogItemId, getDisplayName, getTagSupport, tags
config
setCatalogItemId
public SensorPropagatingEnricher(Entity source, Sensor<?>... sensors)
Enrichers.builder()
public SensorPropagatingEnricher(Entity source, java.util.Collection<Sensor<?>> sensors)
Enrichers.builder()
addEnricher(Enrichers.builder()
.propagating(sensors)
.from(source)
.build());
public static SensorPropagatingEnricher newInstanceListeningToAllSensors(Entity source)
public static SensorPropagatingEnricher newInstanceListeningToAllSensorsBut(Entity source, Sensor<?>... excludes)
public static SensorPropagatingEnricher newInstanceListeningTo(Entity source, Sensor<?>... includes)
public static SensorPropagatingEnricher newInstanceRenaming(Entity source, java.util.Map<? extends Sensor<?>,? extends Sensor<?>> sensors)
Enrichers.builder()
addEnricher(Enrichers.builder()
.propagating(mapOfOldSensorNamesToNewSensorNames)
.from(source)
.build());
public void setEntity(EntityLocal entity)
setEntity
in class AbstractEnricher
public void onEvent(SensorEvent<java.lang.Object> event)
SensorEventListener
SensorEvent
handler method.onEvent
in interface SensorEventListener<java.lang.Object>
public void emitAllAttributes()
public void emitAllAttributes(boolean includeNullValues)
public SensorPropagatingEnricher addToEntityAndEmitAll(Entity host)