public class ServiceFailureDetector extends ServiceStateLogic.ComputeServiceState
HASensors.ENTITY_FAILED
whenever the parent's default logic (ServiceStateLogic.ComputeServiceState
) would detect a problem,
and similarly HASensors.ENTITY_RECOVERED
when recovered.
gives more control over suppressing Lifecycle.ON_FIRE
,
for some period of time
(or until another process manually sets Attributes.SERVICE_STATE_ACTUAL
to ,
which this enricher will not clear until all problems have gone away)
Modifier and Type | Class and Description |
---|---|
static class |
ServiceFailureDetector.LastPublished |
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 BasicNotificationSensor<HASensors.FailureDescriptor> |
ENTITY_FAILED |
static ConfigKey<java.lang.Boolean> |
ENTITY_FAILED_ONLY_IF_PREVIOUSLY_UP |
static ConfigKey<Duration> |
ENTITY_FAILED_REPUBLISH_TIME |
static ConfigKey<Duration> |
ENTITY_FAILED_STABILIZATION_DELAY |
static ConfigKey<Duration> |
ENTITY_RECOVERED_STABILIZATION_DELAY |
static ConfigKey<ServiceFailureDetector.LastPublished> |
LAST_PUBLISHED
Indicates the last event that was published (so we don't accidentally publish repeated
ENTITY_FAILED, etc).
|
static ConfigKey<java.lang.Boolean> |
MONITOR_SERVICE_PROBLEMS |
static ConfigKey<Duration> |
SERVICE_ON_FIRE_STABILIZATION_DELAY |
DEFAULT_ENRICHER_UNIQUE_TAG
SUPPRESS_DUPLICATES
HIGHLIGHT_NAME_LAST_ACTION, HIGHLIGHT_NAME_LAST_CONFIRMATION, HIGHLIGHT_NAME_LAST_VIOLATION, HIGHLIGHT_NAME_TRIGGERS
NOOP
Constructor and Description |
---|
ServiceFailureDetector() |
Modifier and Type | Method and Description |
---|---|
void |
onEvent(SensorEvent<java.lang.Object> event)
The
SensorEvent handler method. |
init, setEntity
getEnricherType, getRebindSupport, relations
config, configure, destroy, getAdjunctType, getConfig, getDisplayName, getEntity, getExecutionContext, getHighlights, getManagementContext, getUniqueTag, isDestroyed, isRunning, setDisplayName, setHighlights, subscriptions, tags, toString
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, setManagementContext, stackCatalogItemId
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHighlights, getUniqueTag, isDestroyed, isRunning
getCatalogItemId, getCatalogItemIdSearchPath, getDisplayName, subscriptions, tags
config, getConfig
addSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId
public static final BasicNotificationSensor<HASensors.FailureDescriptor> ENTITY_FAILED
public static final ConfigKey<java.lang.Boolean> ENTITY_FAILED_ONLY_IF_PREVIOUSLY_UP
public static final ConfigKey<java.lang.Boolean> MONITOR_SERVICE_PROBLEMS
public static final ConfigKey<Duration> SERVICE_ON_FIRE_STABILIZATION_DELAY
public static final ConfigKey<Duration> ENTITY_FAILED_STABILIZATION_DELAY
public static final ConfigKey<Duration> ENTITY_RECOVERED_STABILIZATION_DELAY
public static final ConfigKey<ServiceFailureDetector.LastPublished> LAST_PUBLISHED
public void onEvent(SensorEvent<java.lang.Object> event)
SensorEventListener
SensorEvent
handler method.onEvent
in interface SensorEventListener<java.lang.Object>
onEvent
in class ServiceStateLogic.ComputeServiceState