Brooklyn

brooklyn.event.adapter
[Groovy] Class AbstractPushHelper

java.lang.Object
  brooklyn.event.adapter.AbstractPushHelper

@Deprecated
abstract class AbstractPushHelper

Captures common fields and processes for pushers that support sensor adapters. For example, a JMX notification subscription would push notifications here, to be turned into sensor updates.

deprecated:
See brooklyn.event.feed.*


Field Summary
static Logger log

 
Property Summary
boolean lastWasSuccessful

 
Constructor Summary
AbstractPushHelper(AbstractSensorAdapter adapter)

 
Method Summary
protected void activatePushing()

void addSensor(Sensor s, groovy.lang.Closure c)

protected void deactivatePushing()

java.lang.Object evaluateSensorOnResponse(Sensor s, groovy.lang.Closure c, AbstractSensorEvaluationContext response)

void evaluateSensorsOnResponse(AbstractSensorEvaluationContext response)

EntityLocal getEntity()

protected java.lang.String getOptionalContextForErrors(AbstractSensorEvaluationContext response)

void init()

protected void onPush(AbstractSensorEvaluationContext notification)

implementation-specific generation of AbstractSensorEvaluationContext which is then typically passed to evaluateSensorsOnPollResponse

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

log

public static final Logger log


 
Property Detail

lastWasSuccessful

boolean lastWasSuccessful


 
Constructor Detail

AbstractPushHelper

AbstractPushHelper(AbstractSensorAdapter adapter)


 
Method Detail

activatePushing

protected void activatePushing()


addSensor

void addSensor(Sensor s, groovy.lang.Closure c)


deactivatePushing

protected void deactivatePushing()


evaluateSensorOnResponse

java.lang.Object evaluateSensorOnResponse(Sensor s, groovy.lang.Closure c, AbstractSensorEvaluationContext response)


evaluateSensorsOnResponse

void evaluateSensorsOnResponse(AbstractSensorEvaluationContext response)


getEntity

EntityLocal getEntity()


getOptionalContextForErrors

protected java.lang.String getOptionalContextForErrors(AbstractSensorEvaluationContext response)


init

void init()


onPush

protected void onPush(AbstractSensorEvaluationContext notification)
implementation-specific generation of AbstractSensorEvaluationContext which is then typically passed to evaluateSensorsOnPollResponse


 

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