Brooklyn

brooklyn.event.feed
[Java] Class Poller

java.lang.Object
  brooklyn.event.feed.Poller

public class Poller

For executing periodic polls. Jobs are added to the schedule, and then the poller is started. The jobs will then be executed periodically, and the handler called for the result/failure. Assumes the schedule+start will be done single threaded, and that stop will not be done concurrently.


Field Summary
static Logger log

 
Method Summary
java.lang.Object Poller(EntityLocal entity)

protected boolean isEmpty()

boolean isRunning()

void scheduleAtFixedRate(java.util.concurrent.Callable job, PollHandler handler, long period)

void start()

void stop()

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

log

public static final Logger log


 
Method Detail

Poller

public java.lang.Object Poller(EntityLocal entity)


isEmpty

protected boolean isEmpty()


isRunning

public boolean isRunning()


scheduleAtFixedRate

public void scheduleAtFixedRate(java.util.concurrent.Callable job, PollHandler handler, long period)


start

public void start()


stop

public void stop()


toString

public java.lang.String toString()


 

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