public abstract class AbstractFeed extends AbstractEntityAdjunct implements Feed
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.lang.Boolean> |
ONLY_IF_SERVICE_UP |
HIGHLIGHT_NAME_LAST_ACTION, HIGHLIGHT_NAME_LAST_CONFIRMATION, HIGHLIGHT_NAME_LAST_VIOLATION, HIGHLIGHT_NAME_TRIGGERS
Constructor and Description |
---|
AbstractFeed() |
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
EntityAdjunct.isRunning() |
boolean |
isRunning()
Whether the adjunct is available/active, ie started and not stopped or interrupted
|
boolean |
isSuspended() |
BrooklynObjectInternal.RelationSupportInternal<Feed> |
relations()
Relations specify a typed, directed connection between two entities.
|
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, getAdjunctType, getConfig, getDisplayName, getExecutionContext, getHighlights, getManagementContext, getUniqueTag, isDestroyed, setDisplayName, setHighlights, subscriptions, tags, toString
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, init, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, setManagementContext, stackCatalogItemId
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHighlights, getId, getUniqueTag, isDestroyed
getCatalogItemId, getCatalogItemIdSearchPath, getDisplayName, subscriptions, tags
config, getConfig
addSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId
public static final ConfigKey<java.lang.Boolean> ONLY_IF_SERVICE_UP
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
EntityAdjunct.isRunning()
isActivated
in interface Feed
public EntityLocal getEntity()
getEntity
in class AbstractEntityAdjunct
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 Rebindable
getRebindSupport
in interface Feed
getRebindSupport
in interface BrooklynObjectInternal
public BrooklynObjectInternal.RelationSupportInternal<Feed> relations()
BrooklynObject
relations
in interface BrooklynObject
relations
in interface Feed
relations
in interface BrooklynObjectInternal
relations
in class AbstractBrooklynObject