Package com.oracle.coherence.mp.health
Class CoherenceHealthChecks.CoherenceHealth
java.lang.Object
com.oracle.coherence.mp.health.CoherenceHealthChecks.CoherenceHealth
- All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck
- Direct Known Subclasses:
CoherenceHealthChecks.CoherenceLiveness,CoherenceHealthChecks.CoherenceReadiness,CoherenceHealthChecks.CoherenceStarted
- Enclosing class:
CoherenceHealthChecks
protected abstract static class CoherenceHealthChecks.CoherenceHealth
extends Object
implements org.eclipse.microprofile.health.HealthCheck
A base implementation for Coherence
health checks.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCoherenceHealth(String sName, Supplier<? extends Collection<com.tangosol.net.Coherence>> supplier) Create aCoherenceHealthChecks.CoherenceHealthinstance. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.microprofile.health.HealthCheckResponsecall()protected abstract booleanisUp(com.tangosol.util.HealthCheck healthCheck) Returnstrueif the CoherenceHealthCheckis healthy, otherwise returnsfalse.protected org.eclipse.microprofile.health.HealthCheckResponseBuilderupdate(com.tangosol.net.Coherence coherence, org.eclipse.microprofile.health.HealthCheckResponseBuilder builder) Update thebuilderwith Coherence health information.
-
Constructor Details
-
CoherenceHealth
protected CoherenceHealth(String sName, Supplier<? extends Collection<com.tangosol.net.Coherence>> supplier) Create aCoherenceHealthChecks.CoherenceHealthinstance.- Parameters:
sName- the name of the health checksupplier- theCoherenceinstance supplier
-
-
Method Details
-
call
public org.eclipse.microprofile.health.HealthCheckResponse call()- Specified by:
callin interfaceorg.eclipse.microprofile.health.HealthCheck
-
update
protected org.eclipse.microprofile.health.HealthCheckResponseBuilder update(com.tangosol.net.Coherence coherence, org.eclipse.microprofile.health.HealthCheckResponseBuilder builder) Update thebuilderwith Coherence health information.- Parameters:
coherence- the Coherence instancebuilder- thebuilderto update- Returns:
- the updated
builder
-
isUp
protected abstract boolean isUp(com.tangosol.util.HealthCheck healthCheck) Returnstrueif the CoherenceHealthCheckis healthy, otherwise returnsfalse.- Parameters:
healthCheck- the CoherenceHealthCheck- Returns:
trueif the CoherenceHealthCheckis healthy, otherwise returnsfalse
-