|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectbrooklyn.event.adapter.AbstractPushHelper
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.
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)
|
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 |
---|
public static final Logger log
Property Detail |
---|
boolean lastWasSuccessful
Constructor Detail |
---|
AbstractPushHelper(AbstractSensorAdapter adapter)
Method Detail |
---|
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)
protected void onPush(AbstractSensorEvaluationContext notification)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.