|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.event.feed.AbstractFeed
public abstract class AbstractFeed
Captures common fields and processes for sensor feeds. These generally poll or subscribe to get sensor values for an entity. They make it easy to poll over http, jmx, etc. Assumes:
Field Summary | |
---|---|
protected EntityLocal |
entity
|
protected Poller |
poller
|
Constructor Summary | |
AbstractFeed(EntityLocal entity)
|
Method Summary | |
---|---|
EntityLocal
|
getEntity()
|
boolean
|
isActivated()
true if everything has been _started_ (or it is starting) but not stopped, even if it is suspended; see also isActive() |
boolean
|
isActive()
true iff the feed is running |
protected boolean
|
isConnected()
|
protected void
|
postStop()
For overriding. |
protected void
|
preStart()
For overriding. |
protected void
|
preStop()
For overriding. |
void
|
resume()
resumes this feed if it has been suspended and not stopped |
protected void
|
start()
|
void
|
stop()
|
void
|
suspend()
suspends this feed (stops the poller, or indicates that the feed should start in a state where the poller is stopped) |
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 |
---|
protected final EntityLocal entity
protected final Poller poller
Constructor Detail |
---|
public AbstractFeed(EntityLocal entity)
Method Detail |
---|
public EntityLocal getEntity()
public boolean isActivated()
public boolean isActive()
protected boolean isConnected()
protected void postStop()
protected void preStart()
protected void preStop()
public void resume()
protected void start()
public void stop()
public void suspend()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.