Brooklyn

brooklyn.enricher
[Java] Class DeltaEnricher

java.lang.Object
  brooklyn.policy.basic.AbstractEntityAdjunct
      brooklyn.enricher.basic.AbstractEnricher
          brooklyn.enricher.basic.AbstractTypeTransformingEnricher
              brooklyn.enricher.basic.AbstractTransformingEnricher
                  brooklyn.enricher.DeltaEnricher

public class DeltaEnricher
extends AbstractTransformingEnricher

Converts an absolute sensor into a delta sensor (i.e. the diff between the current and previous value)


Field Summary
 
Fields inherited from class AbstractTypeTransformingEnricher
target
 
Fields inherited from class AbstractEnricher
leftoverProperties
 
Fields inherited from class AbstractEntityAdjunct
_subscriptionTracker, entity, id, name
 
Constructor Summary
DeltaEnricher(Entity producer, Sensor source, AttributeSensor target)

 
Method Summary
void onEvent(SensorEvent event)

 
Methods inherited from class AbstractTypeTransformingEnricher
setEntity
 
Methods inherited from class AbstractEnricher
configure
 
Methods inherited from class AbstractEntityAdjunct
check, destroy, getAllSubscriptions, getId, getManagementContext, getName, getSubscriptionTracker, isDestroyed, isRunning, setEntity, setId, setName, subscribe, subscribeToChildren, subscribeToMembers, unsubscribe, unsubscribe
 

Constructor Detail

DeltaEnricher

public DeltaEnricher(Entity producer, Sensor source, AttributeSensor target)


 
Method Detail

onEvent

@Override
public void onEvent(SensorEvent event)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.