brooklyn.enricher
[Java] Class TimeWeightedDeltaEnricher
java.lang.Object
brooklyn.policy.basic.AbstractEntityAdjunct
brooklyn.enricher.basic.AbstractEnricher
brooklyn.enricher.basic.AbstractTypeTransformingEnricher
brooklyn.enricher.TimeWeightedDeltaEnricher
public class TimeWeightedDeltaEnricher
extends AbstractTypeTransformingEnricher
Converts an absolute sensor into a delta sensor (i.e. the diff between the current and previous value),
presented as a units/timeUnit based on the event timing.
NB for time (e.g. "total milliseconds consumed") use TimeFractionDeltaEnricher
Constructor Summary |
TimeWeightedDeltaEnricher(Entity producer, Sensor source, Sensor target, int unitMillis)
|
TimeWeightedDeltaEnricher(Entity producer, Sensor source, Sensor target, int unitMillis, groovy.lang.Closure postProcessor)
|
TimeWeightedDeltaEnricher(Entity producer, Sensor source, Sensor target, int unitMillis, Function postProcessor)
|
Methods inherited from class AbstractEntityAdjunct
|
check, configure, configure, destroy, doReconfigureConfig, getAdjunctType, getAllConfig, getAllSubscriptions, getConfig, getConfigMap, getId, getManagementContext, getName, getSubscriptionTracker, init, isDestroyed, isLegacyConstruction, isRunning, setConfig, setEntity, setId, setManagementContext, setName, subscribe, subscribeToChildren, subscribeToMembers, toString, unsubscribe, unsubscribe |
TimeWeightedDeltaEnricher
public TimeWeightedDeltaEnricher(Entity producer, Sensor source, Sensor target, int unitMillis)
-
TimeWeightedDeltaEnricher
public TimeWeightedDeltaEnricher(Entity producer, Sensor source, Sensor target, int unitMillis, groovy.lang.Closure postProcessor)
-
TimeWeightedDeltaEnricher
public TimeWeightedDeltaEnricher(Entity producer, Sensor source, Sensor target, int unitMillis, Function postProcessor)
-
getPerSecondDeltaEnricher
public static TimeWeightedDeltaEnricher getPerSecondDeltaEnricher(Entity producer, Sensor source, Sensor target)
-
onEvent
public void onEvent(SensorEvent event) {
public void onEvent(SensorEvent event)
-
onEvent
public void onEvent(SensorEvent event, long eventTime)
-
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.