public class PercentageEnricher extends AbstractEnricher implements SensorEventListener<java.lang.Number>
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.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_DUPLICATES
NOOP
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, relations
config, configure, destroy, getAdjunctType, getConfig, getDisplayName, getEntity, 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 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 AbstractEnricher
public void onEvent(SensorEvent<java.lang.Number> event)
SensorEventListener
SensorEvent
handler method.onEvent
in interface SensorEventListener<java.lang.Number>