Enrichers.builder()
public class AddingEnricher extends AbstractEnricher implements SensorEventListener
addEnricher(Enrichers.builder()
.combining(sources)
.publishing(target)
.computeSum()
.build());
if need to sub-class
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
SUPPRESS_DUPLICATES
NOOP
Constructor and Description |
---|
AddingEnricher(Sensor[] sources,
Sensor<? extends java.lang.Number> target)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <V> V |
cast(java.lang.Number value,
java.lang.Class<V> type)
Deprecated.
|
void |
onEvent(SensorEvent event)
Deprecated.
The
SensorEvent handler method. |
void |
setEntity(EntityLocal entity)
Deprecated.
|
getEnricherType, getRebindSupport, relations
config, configure, destroy, getAdjunctType, getConfig, getConfigMap, getDisplayName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, tags, toString, unsubscribe, unsubscribe
getCatalogItemId, getId, getManagementContext, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUniqueTag, isDestroyed, isRunning
getCatalogItemId, getDisplayName, subscriptions, tags
config, getConfig, setConfig
setCatalogItemId
public void setEntity(EntityLocal entity)
setEntity
in class AbstractEnricher
public void onEvent(SensorEvent event)
SensorEventListener
SensorEvent
handler method.onEvent
in interface SensorEventListener
public static <V> V cast(java.lang.Number value, java.lang.Class<V> type)