public abstract class AbstractFeed extends AbstractEntityAdjunct implements Feed
AbstractEntityAdjunct.AdjunctTagSupport
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.lang.Boolean> |
ONLY_IF_SERVICE_UP |
Constructor and Description |
---|
AbstractFeed() |
AbstractFeed(EntityLocal entity)
Deprecated.
since 0.7.0; use no-arg constructor; call
setEntity(EntityLocal) |
AbstractFeed(EntityLocal entity,
boolean onlyIfServiceUp)
Deprecated.
since 0.7.0; use no-arg constructor; call
setEntity(EntityLocal) and setConfig(ONLY_IF_SERVICE_UP, onlyIfServiceUp) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Unsubscribes and clears all managed subscriptions; is called by the owning entity when a policy is removed
and should always be called by any subclasses overriding this method
|
EntityLocal |
getEntity() |
RebindSupport<FeedMemento> |
getRebindSupport()
Users are strongly discouraged from calling or overriding this method.
|
boolean |
isActivated()
True if everything has been _started_ (or it is starting) but not stopped,
even if it is suspended; see also
Feed.isActive() |
boolean |
isActive() |
boolean |
isRunning()
Whether the adjunct is available/active, ie started and not stopped or interrupted
|
boolean |
isSuspended() |
void |
resume()
resumes this feed if it has been suspended and not stopped
|
void |
setEntity(EntityLocal entity) |
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)
|
config, configure, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, setConfig, setDisplayName, setName, tags, toString
getCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getName, getUniqueTag, isDestroyed
getCatalogItemId, getDisplayName, getTagSupport, tags
config, setConfig
setCatalogItemId
public static final ConfigKey<java.lang.Boolean> ONLY_IF_SERVICE_UP
public AbstractFeed()
@Deprecated public AbstractFeed(EntityLocal entity)
setEntity(EntityLocal)
@Deprecated public AbstractFeed(EntityLocal entity, boolean onlyIfServiceUp)
setEntity(EntityLocal)
and setConfig(ONLY_IF_SERVICE_UP, onlyIfServiceUp)
public void setEntity(EntityLocal entity)
setEntity
in class AbstractEntityAdjunct
public void suspend()
Feed
public void resume()
Feed
public void destroy()
AbstractEntityAdjunct
destroy
in class AbstractEntityAdjunct
public boolean isActivated()
Feed
Feed.isActive()
isActivated
in interface Feed
public boolean isActive()
isActive
in interface Feed
Feed.isActivated()
, but including other items like poll jobs not cancelled)public EntityLocal getEntity()
public boolean isSuspended()
isSuspended
in interface Feed
public boolean isRunning()
EntityAdjunct
isRunning
in interface EntityAdjunct
isRunning
in class AbstractEntityAdjunct
public RebindSupport<FeedMemento> getRebindSupport()
Feed
getRebindSupport
in interface BrooklynObjectInternal
getRebindSupport
in interface Feed
getRebindSupport
in interface Rebindable