public class ConnectionFailureDetector extends AbstractFailureDetector
HostAndPort
, to emit HASensors.CONNECTION_FAILED and HASensors.CONNECTION_RECOVERED
if the connection is lost/restored.AbstractFailureDetector.CalculatedStatus, AbstractFailureDetector.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> |
CONNECTION_FAILED |
static ConfigKey<Duration> |
CONNECTION_FAILED_STABILIZATION_DELAY |
static BasicNotificationSensor<HASensors.FailureDescriptor> |
CONNECTION_RECOVERED |
static ConfigKey<Duration> |
CONNECTION_RECOVERED_STABILIZATION_DELAY |
static ConfigKey<HostAndPort> |
ENDPOINT |
static ConfigKey<Duration> |
POLL_PERIOD |
FAILED_STABILIZATION_DELAY, RECOVERED_STABILIZATION_DELAY, SENSOR_FAILED, SENSOR_RECOVERED
HIGHLIGHT_NAME_LAST_ACTION, HIGHLIGHT_NAME_LAST_CONFIRMATION, HIGHLIGHT_NAME_LAST_VIOLATION, HIGHLIGHT_NAME_TRIGGERS
Constructor and Description |
---|
ConnectionFailureDetector() |
Modifier and Type | Method and Description |
---|---|
void |
init()
Called by framework (in new-style instances where spec was used) after configuring etc,
but before a reference to this instance is shared.
|
resume, setEntity, suspend
destroy, getPolicyType, getRebindSupport, isRunning, isSuspended, relations, toString
config, configure, getAdjunctType, getConfig, getDisplayName, getEntity, getExecutionContext, getHighlights, getManagementContext, getUniqueTag, isDestroyed, setDisplayName, setHighlights, subscriptions, tags
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, setManagementContext, stackCatalogItemId
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHighlights, getUniqueTag, isDestroyed
getCatalogItemId, getCatalogItemIdSearchPath, getDisplayName, subscriptions, tags
config, getConfig
addSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId
public static final ConfigKey<HostAndPort> ENDPOINT
public static final BasicNotificationSensor<HASensors.FailureDescriptor> CONNECTION_FAILED
public static final BasicNotificationSensor<HASensors.FailureDescriptor> CONNECTION_RECOVERED
public static final ConfigKey<Duration> CONNECTION_FAILED_STABILIZATION_DELAY
public void init()
AbstractBrooklynObject
To preserve backwards compatibility for if the instance is constructed directly, one can call the code below, but that means it will be called after references to this policy have been shared with other entities.
if (isLegacyConstruction()) {
init();
}
init
in class AbstractBrooklynObject