public static class AsyncApplicationImpl.ServiceStateComputer extends AbstractMultipleSensorAggregator<java.lang.Void> implements SensorEventListener<java.lang.Object>
onUpdated()
, and its helper methods
for computeServiceUp(Lifecycle)
, computeServiceState(Lifecycle)
and
computeExpectedState(Lifecycle, Lifecycle)
.
This class is not to be instantiated directly. Instead, if cusotmization is desired then override
AsyncApplicationImpl.initEnrichers()
to create and add this enricher (with the same unique
tag, to replace the default).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 java.lang.String |
DEFAULT_UNIQUE_TAG
standard unique tag identifying instances of this enricher at runtime
|
static ConfigKey<java.util.Set<Lifecycle>> |
ENTITY_FAILED_STATES |
static ConfigKey<java.util.Set<Lifecycle>> |
ENTITY_IGNORED_STATES_ON_OTHERS |
static ConfigKey<java.util.Set<Lifecycle>> |
ENTITY_IGNORED_STATES_ON_STARTING |
static ConfigKey<java.util.Set<Lifecycle>> |
ENTITY_TRANSITION_STATES_ON_STARTING |
static ConfigKey<java.lang.Boolean> |
IGNORE_ENTITIES_WITH_SERVICE_UP_NULL |
static ConfigKey<QuorumCheck> |
RUNNING_QUORUM_CHECK |
static ConfigKey<QuorumCheck> |
UP_QUORUM_CHECK |
DEFAULT_MEMBER_VALUE, ENTITY_FILTER, EXCLUDE_BLANK, FROM_CHILDREN, FROM_HARDCODED_PRODUCERS, FROM_MEMBERS, PRODUCER, TARGET_SENSOR, VALUE_FILTER
SUPPRESS_DUPLICATES
HIGHLIGHT_NAME_LAST_ACTION, HIGHLIGHT_NAME_LAST_CONFIRMATION, HIGHLIGHT_NAME_LAST_VIOLATION, HIGHLIGHT_NAME_TRIGGERS
NOOP
Constructor and Description |
---|
ServiceStateComputer() |
Modifier and Type | Method and Description |
---|---|
AsyncApplicationImpl |
getEntity() |
void |
setEntity(EntityLocal entity) |
getValues, onEvent
getEnricherType, getRebindSupport, relations
config, configure, destroy, getAdjunctType, getConfig, getDisplayName, getExecutionContext, getHighlights, getManagementContext, getUniqueTag, isDestroyed, isRunning, setDisplayName, setHighlights, subscriptions, tags, toString
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, init, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, setManagementContext, stackCatalogItemId
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
onEvent
getHighlights, getUniqueTag, isDestroyed, isRunning
getCatalogItemId, getCatalogItemIdSearchPath, getDisplayName, subscriptions, tags
config, getConfig
addSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId
public static final java.lang.String DEFAULT_UNIQUE_TAG
public static final ConfigKey<QuorumCheck> RUNNING_QUORUM_CHECK
public static final ConfigKey<QuorumCheck> UP_QUORUM_CHECK
public static final ConfigKey<java.util.Set<Lifecycle>> ENTITY_TRANSITION_STATES_ON_STARTING
public static final ConfigKey<java.util.Set<Lifecycle>> ENTITY_IGNORED_STATES_ON_STARTING
public static final ConfigKey<java.util.Set<Lifecycle>> ENTITY_IGNORED_STATES_ON_OTHERS
public static final ConfigKey<java.lang.Boolean> IGNORE_ENTITIES_WITH_SERVICE_UP_NULL
public AsyncApplicationImpl getEntity()
getEntity
in class AbstractEntityAdjunct
public void setEntity(EntityLocal entity)
setEntity
in class AbstractAggregator<java.lang.Object,java.lang.Void>