public abstract class AbstractGeodeHealthIndicator
extends org.springframework.boot.actuate.health.AbstractHealthIndicator
AbstractGeodeHealthIndicator class is an abstract base class encapsulating functionality common to all
Apache Geode HealthIndicator objects.GemFireCache,
AbstractHealthIndicator,
HealthIndicator| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
UNKNOWN |
| Constructor and Description |
|---|
AbstractGeodeHealthIndicator(org.apache.geode.cache.GemFireCache gemfireCache)
Constructs an instance of the
AbstractGeodeHealthIndicator initialized with a reference to
the GemFireCache instance. |
AbstractGeodeHealthIndicator(java.lang.String healthCheckedFailedMessage)
Default constructor to construct an uninitialized instance of
AbstractGeodeHealthIndicator,
which will not provide any health information. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Optional<org.apache.geode.cache.GemFireCache> |
getGemFireCache()
Returns a reference to the
GemFireCache instance. |
protected java.lang.String |
nullSafeClassName(java.lang.Class<?> type)
Determines the
name of the Class type safely by handling null. |
protected java.lang.String |
toYesNoString(java.lang.Boolean value)
Converts a
Boolean value into a yes / no String. |
doHealthCheck, healthprotected static final java.lang.String UNKNOWN
public AbstractGeodeHealthIndicator(java.lang.String healthCheckedFailedMessage)
AbstractGeodeHealthIndicator,
which will not provide any health information.public AbstractGeodeHealthIndicator(org.apache.geode.cache.GemFireCache gemfireCache)
AbstractGeodeHealthIndicator initialized with a reference to
the GemFireCache instance.gemfireCache - reference to the GemFireCache instance used to collect health information.java.lang.IllegalArgumentException - if GemFireCache is null.GemFireCacheprotected java.util.Optional<org.apache.geode.cache.GemFireCache> getGemFireCache()
GemFireCache instance.GemFireCache instance.GemFireCacheprotected java.lang.String nullSafeClassName(java.lang.Class<?> type)
name of the Class type safely by handling null.type - Class type to evaluate.name of the Class type.Class.getName()protected java.lang.String toYesNoString(java.lang.Boolean value)
Boolean value into a yes / no String.value - Boolean value to convert.Boolean value.