public class PercentageEnricher extends AbstractEnricher implements SensorEventListener<java.lang.Number>
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal| Modifier and Type | Field and Description |
|---|---|
static ConfigKey<Entity> |
PRODUCER |
static ConfigKey<AttributeSensor<? extends java.lang.Number>> |
SOURCE_CURRENT_SENSOR |
static ConfigKey<AttributeSensor<? extends java.lang.Number>> |
SOURCE_TOTAL_SENSOR |
static ConfigKey<AttributeSensor<java.lang.Double>> |
TARGET_SENSOR |
SUPPRESS_DUPLICATESNOOP| Constructor and Description |
|---|
PercentageEnricher() |
| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(SensorEvent<java.lang.Number> event)
The
SensorEvent handler method. |
void |
setEntity(EntityLocal entity) |
getEnricherType, getRebindSupport, relationsconfig, configure, destroy, getAdjunctType, getConfig, getDisplayName, getEntity, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, tags, toString, unsubscribe, unsubscribegetCatalogItemId, getId, getManagementContext, init, rebind, setCatalogItemId, setManagementContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUniqueTag, isDestroyed, isRunninggetCatalogItemId, getDisplayName, subscriptions, tagsconfig, getConfig, setConfigsetCatalogItemIdpublic static final ConfigKey<AttributeSensor<? extends java.lang.Number>> SOURCE_CURRENT_SENSOR
public static final ConfigKey<AttributeSensor<? extends java.lang.Number>> SOURCE_TOTAL_SENSOR
public static final ConfigKey<AttributeSensor<java.lang.Double>> TARGET_SENSOR
public void setEntity(EntityLocal entity)
setEntity in class AbstractEnricherpublic void onEvent(SensorEvent<java.lang.Number> event)
SensorEventListenerSensorEvent handler method.onEvent in interface SensorEventListener<java.lang.Number>