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
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal
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<java.lang.Boolean> |
MONITOR_SERVICE_PROBLEMS |
static ConfigKey<Duration> |
SERVICE_ON_FIRE_STABILIZATION_DELAY |
DEFAULT_ENRICHER_UNIQUE_TAG
SUPPRESS_DUPLICATES
NOOP
Constructor and Description |
---|
ServiceFailureDetector() |
ServiceFailureDetector(ConfigBag configBag) |
ServiceFailureDetector(java.util.Map<java.lang.String,?> flags) |
Modifier and Type | Method and Description |
---|---|
void |
onEvent(SensorEvent<java.lang.Object> event)
The
SensorEvent handler method. |
init, setEntity
getEnricherType, getRebindSupport
config, configure, destroy, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, setName, tags, toString
getCatalogItemId, getId, getManagementContext, getTagSupport, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllConfig, getConfig, getId, getName, setConfig
getUniqueTag, isDestroyed, isRunning
getCatalogItemId, getDisplayName, getTagSupport, tags
config
setCatalogItemId
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 ServiceFailureDetector()
public ServiceFailureDetector(java.util.Map<java.lang.String,?> flags)
public ServiceFailureDetector(ConfigBag configBag)
public void onEvent(SensorEvent<java.lang.Object> event)
SensorEventListener
SensorEvent
handler method.onEvent
in interface SensorEventListener<java.lang.Object>
onEvent
in class ServiceStateLogic.ComputeServiceState