Enrichers.builder()public class AddingEnricher extends AbstractEnricher implements SensorEventListener
addEnricher(Enrichers.builder()
.combining(sources)
.publishing(target)
.computeSum()
.build());
if need to sub-classAbstractEntityAdjunct.AdjunctTagSupportBrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternalSUPPRESS_DUPLICATESNOOP| 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, getRebindSupportconfig, configure, destroy, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, setName, tags, toStringgetCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllConfig, getConfig, getId, getName, setConfiggetUniqueTag, isDestroyed, isRunninggetCatalogItemId, getDisplayName, getTagSupport, tagsconfigsetCatalogItemIdpublic void setEntity(EntityLocal entity)
setEntity in class AbstractEnricherpublic void onEvent(SensorEvent event)
SensorEventListenerSensorEvent handler method.onEvent in interface SensorEventListenerpublic static <V> V cast(java.lang.Number value,
java.lang.Class<V> type)