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
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, destroy, getAllSubscriptions, getId, getManagementContext, getName, getSubscriptionTracker, isDestroyed, isRunning, setEntity, setId, setName, subscribe, subscribeToChildren, subscribeToMembers, 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
@Override
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.