public class ServiceReplacer extends AbstractPolicy
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal| Modifier and Type | Field and Description |
|---|---|
static BasicNotificationSensor<HASensors.FailureDescriptor> |
ENTITY_REPLACEMENT_FAILED |
static ConfigKey<java.lang.Integer> |
FAIL_ON_NUM_RECURRING_FAILURES
skips replace if replacement has failed this many times failure re-occurs within this time interval
|
static ConfigKey<java.lang.Long> |
FAIL_ON_RECURRING_FAILURES_IN_THIS_DURATION
skips replace if replacement has failed this many times failure re-occurs within this time interval
|
static ConfigKey<Sensor> |
FAILURE_SENSOR_TO_MONITOR
monitors this sensor, by default ENTITY_RESTART_FAILED
|
static ConfigKey<java.lang.Boolean> |
SET_ON_FIRE_ON_FAILURE |
static ConfigKey<Ticker> |
TICKER |
| Constructor and Description |
|---|
ServiceReplacer() |
ServiceReplacer(ConfigBag configBag) |
ServiceReplacer(java.util.Map<java.lang.String,?> flags) |
ServiceReplacer(Sensor<?> failureSensorToMonitor) |
| Modifier and Type | Method and Description |
|---|---|
void |
setEntity(EntityLocal entity) |
destroy, getPolicyType, getRebindSupport, isRunning, isSuspended, relations, resume, suspend, toStringconfig, configure, getAdjunctType, getConfig, getConfigMap, getDisplayName, getUniqueTag, isDestroyed, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, tags, unsubscribe, unsubscribegetCatalogItemId, getId, getManagementContext, init, rebind, setCatalogItemId, setManagementContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUniqueTag, isDestroyedgetCatalogItemId, getDisplayName, subscriptions, tagsconfig, getConfigsetCatalogItemIdpublic static final BasicNotificationSensor<HASensors.FailureDescriptor> ENTITY_REPLACEMENT_FAILED
public static final ConfigKey<java.lang.Boolean> SET_ON_FIRE_ON_FAILURE
public static final ConfigKey<Sensor> FAILURE_SENSOR_TO_MONITOR
public static final ConfigKey<java.lang.Long> FAIL_ON_RECURRING_FAILURES_IN_THIS_DURATION
public static final ConfigKey<java.lang.Integer> FAIL_ON_NUM_RECURRING_FAILURES
public static final ConfigKey<Ticker> TICKER
public ServiceReplacer()
public ServiceReplacer(java.util.Map<java.lang.String,?> flags)
public ServiceReplacer(ConfigBag configBag)
public ServiceReplacer(Sensor<?> failureSensorToMonitor)
public void setEntity(EntityLocal entity)
setEntity in class AbstractEntityAdjunct