public class TimeWeightedDeltaEnricher<T extends java.lang.Number> extends AbstractTypeTransformingEnricher<T,java.lang.Double>
NB for time (e.g. "total milliseconds consumed") use TimeFractionDeltaEnricher
See also YamlTimeWeightedDeltaEnricher designed for use from YAML.
TODO this may end up being deprecated in favour of near-duplicate code in YAML-friendly YamlTimeWeightedDeltaEnricher,
marking as @Beta in 0.7.0 timeframe
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternalSUPPRESS_DUPLICATESNOOP| Constructor and Description |
|---|
TimeWeightedDeltaEnricher() |
TimeWeightedDeltaEnricher(Entity producer,
Sensor<T> source,
Sensor<java.lang.Double> target,
int unitMillis) |
TimeWeightedDeltaEnricher(Entity producer,
Sensor<T> source,
Sensor<java.lang.Double> target,
int unitMillis,
|
TimeWeightedDeltaEnricher(Entity producer,
Sensor<T> source,
Sensor<java.lang.Double> target,
int unitMillis,
groovy.lang.Closure<java.lang.Double> postProcessor) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.Number> |
getPerSecondDeltaEnricher(Entity producer,
Sensor<T> source,
Sensor<java.lang.Double> target) |
void |
onEvent(SensorEvent<T> event)
The
SensorEvent handler method. |
void |
onEvent(SensorEvent<T> event,
long eventTime) |
setEntitygetEnricherType, getRebindSupport, relationsconfig, configure, destroy, getAdjunctType, getConfig, getConfigMap, getDisplayName, 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 TimeWeightedDeltaEnricher()
public TimeWeightedDeltaEnricher(Entity producer, Sensor<T> source, Sensor<java.lang.Double> target, int unitMillis)
public TimeWeightedDeltaEnricher(Entity producer, Sensor<T> source, Sensor<java.lang.Double> target, int unitMillis, groovy.lang.Closure<java.lang.Double> postProcessor)
public static <T extends java.lang.Number> TimeWeightedDeltaEnricher<T> getPerSecondDeltaEnricher(Entity producer, Sensor<T> source, Sensor<java.lang.Double> target)
public void onEvent(SensorEvent<T> event)
SensorEventListenerSensorEvent handler method.public void onEvent(SensorEvent<T> event, long eventTime)