|
Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectbrooklyn.event.adapter.AbstractPollHelper
abstract class AbstractPollHelper
captures common fields and processes for pollers that support sensor adapters
| Field Summary | |
|---|---|
static Logger |
log
|
| Property Summary | |
|---|---|
AbstractSensorAdapter |
adapter
|
boolean |
lastWasSuccessful
|
java.util.List |
polledListeners
|
java.util.Map |
polledSensors
|
ScheduledTask |
schedule
|
| Constructor Summary | |
AbstractPollHelper(AbstractSensorAdapter adapter)
|
|
| Method Summary | |
|---|---|
protected java.lang.Object
|
activatePoll()
|
void
|
addListener(groovy.lang.Closure c)
|
void
|
addSensor(Sensor s, groovy.lang.Closure c)
|
protected java.lang.Object
|
deactivatePoll()
|
java.lang.Object
|
evaluateSensorOnResponse(Sensor s, groovy.lang.Closure c, AbstractSensorEvaluationContext response)
|
void
|
evaluateSensorsOnResponse(AbstractSensorEvaluationContext response)
|
protected void
|
executePoll()
implementation-specific generation of AbstractSensorEvaluationContext which is then typically passed to evaluateSensorsOnPollResponse |
protected AbstractSensorEvaluationContext
|
executePollOnError(java.lang.Exception e)
optional action to take if a poll has just failed; defaults to null |
protected AbstractSensorEvaluationContext
|
executePollOnSuccess()
method for implementations to supply to execute the poll call which drives the children |
EntityLocal
|
getEntity()
|
protected java.lang.String
|
getOptionalContextForErrors(AbstractSensorEvaluationContext response)
returns additional context information for errors |
protected boolean
|
isEmpty()
|
java.lang.String
|
toString()
|
| 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 |
|---|
AbstractSensorAdapter adapter
boolean lastWasSuccessful
final java.util.List polledListeners
final java.util.Map polledSensors
ScheduledTask schedule
| Constructor Detail |
|---|
AbstractPollHelper(AbstractSensorAdapter adapter)
| Method Detail |
|---|
protected java.lang.Object activatePoll()
void addListener(groovy.lang.Closure c)
void addSensor(Sensor s, groovy.lang.Closure c)
protected java.lang.Object deactivatePoll()
java.lang.Object evaluateSensorOnResponse(Sensor s, groovy.lang.Closure c, AbstractSensorEvaluationContext response)
void evaluateSensorsOnResponse(AbstractSensorEvaluationContext response)
protected void executePoll()
protected AbstractSensorEvaluationContext executePollOnError(java.lang.Exception e)
protected AbstractSensorEvaluationContext executePollOnSuccess()
EntityLocal getEntity()
protected java.lang.String getOptionalContextForErrors(AbstractSensorEvaluationContext response)
protected boolean isEmpty()
java.lang.String toString()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.