|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.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 |
---|
public static final Logger log
Method Detail |
---|
public java.lang.Object Poller(EntityLocal entity)
protected boolean isEmpty()
public boolean isRunning()
public void scheduleAtFixedRate(java.util.concurrent.Callable job, PollHandler handler, long period)
public void start()
public void stop()
public java.lang.String toString()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.