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 |
BrooklynObject.TagSupport| 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_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_TAGSUPPRESS_DUPLICATESNOOP| 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, setEntitygetEnricherType, getRebindSupportconfigure, destroy, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, setName, tags, toStringgetCatalogItemId, getId, getManagementContext, getTagSupport, rebind, setCatalogItemId, setManagementContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllConfig, getConfig, getId, getName, setConfiggetUniqueTag, isDestroyed, isRunninggetCatalogItemId, getDisplayName, getTagSupport, tagssetCatalogItemIdpublic 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 ServiceFailureDetector()
public ServiceFailureDetector(java.util.Map<java.lang.String,?> flags)
public ServiceFailureDetector(ConfigBag configBag)
public void onEvent(SensorEvent<java.lang.Object> event)
SensorEventListenerSensorEvent handler method.onEvent in interface SensorEventListener<java.lang.Object>onEvent in class ServiceStateLogic.ComputeServiceState