public static class ServiceStateLogic.ServiceNotUpLogic
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ENRICHER_UNIQUE_TAG |
Modifier and Type | Method and Description |
---|---|
static void |
clearNotUpIndicator(EntityLocal entity,
Sensor<?> sensor)
as
clearNotUpIndicator(EntityLocal, String) using the given sensor as the key |
static void |
clearNotUpIndicator(EntityLocal entity,
java.lang.String key)
clears any entry for the given key in the
Attributes.SERVICE_NOT_UP_INDICATORS map |
static EnricherSpec<?> |
newEnricherForServiceUpIfNotUpIndicatorsEmpty() |
static void |
updateNotUpIndicator(EntityLocal entity,
Sensor<?> sensor,
java.lang.Object value)
as
updateNotUpIndicator(EntityLocal, String, Object) using the given sensor as the key |
static void |
updateNotUpIndicator(EntityLocal entity,
java.lang.String key,
java.lang.Object value)
puts the given value into the
Attributes.SERVICE_NOT_UP_INDICATORS map as if the
UpdatingMap enricher for the given key |
static void |
updateNotUpIndicatorRequiringNonEmptyList(EntityLocal entity,
AttributeSensor<? extends java.util.Collection<?>> collectionSensor) |
static void |
updateNotUpIndicatorRequiringNonEmptyMap(EntityLocal entity,
AttributeSensor<? extends java.util.Map<?,?>> mapSensor) |
public static final java.lang.String DEFAULT_ENRICHER_UNIQUE_TAG
public static final EnricherSpec<?> newEnricherForServiceUpIfNotUpIndicatorsEmpty()
public static void updateNotUpIndicator(EntityLocal entity, java.lang.String key, java.lang.Object value)
Attributes.SERVICE_NOT_UP_INDICATORS
map as if the
UpdatingMap
enricher for the given keypublic static void clearNotUpIndicator(EntityLocal entity, java.lang.String key)
Attributes.SERVICE_NOT_UP_INDICATORS
mappublic static void updateNotUpIndicator(EntityLocal entity, Sensor<?> sensor, java.lang.Object value)
updateNotUpIndicator(EntityLocal, String, Object)
using the given sensor as the keypublic static void clearNotUpIndicator(EntityLocal entity, Sensor<?> sensor)
clearNotUpIndicator(EntityLocal, String)
using the given sensor as the keypublic static void updateNotUpIndicatorRequiringNonEmptyList(EntityLocal entity, AttributeSensor<? extends java.util.Collection<?>> collectionSensor)
public static void updateNotUpIndicatorRequiringNonEmptyMap(EntityLocal entity, AttributeSensor<? extends java.util.Map<?,?>> mapSensor)