Enrichers.builder()public class SensorPropagatingEnricher extends AbstractEnricher implements SensorEventListener<java.lang.Object>
Enrichers.builder().propagating(XXX).from(source).build()if need to sub-classAbstractEntityAdjunct.AdjunctTagSupportBrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternal| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log
Deprecated.
|
SUPPRESS_DUPLICATESNOOP| 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, getRebindSupportconfig, configure, destroy, getConfig, getConfigMap, getDisplayName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, tags, toString, unsubscribe, unsubscribegetCatalogItemId, getId, getManagementContext, init, rebind, setCatalogItemId, setManagementContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConfig, getId, setConfiggetUniqueTag, isDestroyed, isRunninggetCatalogItemId, getDisplayName, tagsconfigsetCatalogItemIdpublic 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 AbstractEnricherpublic void onEvent(SensorEvent<java.lang.Object> event)
SensorEventListenerSensorEvent handler method.onEvent in interface SensorEventListener<java.lang.Object>public void emitAllAttributes()
public void emitAllAttributes(boolean includeNullValues)
public SensorPropagatingEnricher addToEntityAndEmitAll(Entity host)