Brooklyn

brooklyn.event.adapter
[Groovy] Class AbstractSensorAdapter

java.lang.Object
  brooklyn.event.adapter.AbstractSensorAdapter

@Deprecated
abstract class AbstractSensorAdapter

Captures common fields and processes for sensor adapters

deprecated:
See brooklyn.event.feed.*


Property Summary
boolean activated

EntityLocal entity

groovy.time.TimeDuration pollPeriod

null means no execution; 0 or negative is undefined (but currently no execution)

SensorRegistry registry

 
Constructor Summary
AbstractSensorAdapter(java.util.Map flags = [:])

 
Method Summary
protected void activateAdapter()

protected void addActivationLifecycleListeners(java.lang.Runnable onUp, java.lang.Runnable onDown)

TODO If called in separate thread concurrently with register() then listener could be called twice.

protected void deactivateAdapter()

protected boolean isConnected()

void register(SensorRegistry registry)

 
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()
 

Property Detail

activated

boolean activated


entity

EntityLocal entity


pollPeriod

@SetFromFlag("period")
groovy.time.TimeDuration pollPeriod
null means no execution; 0 or negative is undefined (but currently no execution)


registry

SensorRegistry registry


 
Constructor Detail

AbstractSensorAdapter

AbstractSensorAdapter(java.util.Map flags = [:])


 
Method Detail

activateAdapter

protected void activateAdapter()


addActivationLifecycleListeners

protected void addActivationLifecycleListeners(java.lang.Runnable onUp, java.lang.Runnable onDown)
TODO If called in separate thread concurrently with register() then listener could be called twice. Recommend not adding activation listeners like that!


deactivateAdapter

protected void deactivateAdapter()


isConnected

protected boolean isConnected()


register

void register(SensorRegistry registry)


 

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