public class ServiceRestarter extends AbstractPolicy
ENTITY_RESTART_FAILED
AbstractEntityAdjunct.AdjunctTagSupport
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal
Modifier and Type | Field and Description |
---|---|
static BasicNotificationSensor<HASensors.FailureDescriptor> |
ENTITY_RESTART_FAILED |
static ConfigKey<Duration> |
FAIL_ON_RECURRING_FAILURES_IN_THIS_DURATION
skips retry if a failure re-occurs within this time interval
|
static ConfigKey<Sensor<?>> |
FAILURE_SENSOR_TO_MONITOR
monitors this sensor, by default ENTITY_FAILED
|
static ConfigKey<java.lang.Boolean> |
SET_ON_FIRE_ON_FAILURE |
Constructor and Description |
---|
ServiceRestarter() |
ServiceRestarter(ConfigBag configBag) |
ServiceRestarter(java.util.Map<java.lang.String,?> flags) |
ServiceRestarter(Sensor<?> failureSensorToMonitor) |
Modifier and Type | Method and Description |
---|---|
void |
setEntity(EntityLocal entity) |
destroy, getPolicyType, getRebindSupport, isRunning, isSuspended, resume, suspend, toString
config, configure, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, setConfig, setDisplayName, setName, tags
getCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllConfig, getConfig, getId, getName, setConfig
getUniqueTag, isDestroyed
getCatalogItemId, getDisplayName, getTagSupport, tags
config
setCatalogItemId
public static final BasicNotificationSensor<HASensors.FailureDescriptor> ENTITY_RESTART_FAILED
public static final ConfigKey<Duration> FAIL_ON_RECURRING_FAILURES_IN_THIS_DURATION
public static final ConfigKey<java.lang.Boolean> SET_ON_FIRE_ON_FAILURE
public ServiceRestarter()
public ServiceRestarter(java.util.Map<java.lang.String,?> flags)
public ServiceRestarter(ConfigBag configBag)
public ServiceRestarter(Sensor<?> failureSensorToMonitor)
public void setEntity(EntityLocal entity)
setEntity
in class AbstractEntityAdjunct