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

    Constructors
    Modifier
    Constructor
    Description
    protected
    CoherenceHealth(String sName, Supplier<? extends Collection<com.tangosol.net.Coherence>> supplier)
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.microprofile.health.HealthCheckResponse
     
    protected abstract boolean
    isUp(com.tangosol.util.HealthCheck healthCheck)
    Returns true if the Coherence HealthCheck is healthy, otherwise returns false.
    protected org.eclipse.microprofile.health.HealthCheckResponseBuilder
    update(com.tangosol.net.Coherence coherence, org.eclipse.microprofile.health.HealthCheckResponseBuilder builder)
    Update the builder with Coherence health information.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • call

      public org.eclipse.microprofile.health.HealthCheckResponse call()
      Specified by:
      call in interface org.eclipse.microprofile.health.HealthCheck
    • update

      protected org.eclipse.microprofile.health.HealthCheckResponseBuilder update(com.tangosol.net.Coherence coherence, org.eclipse.microprofile.health.HealthCheckResponseBuilder builder)
      Update the builder with Coherence health information.
      Parameters:
      coherence - the Coherence instance
      builder - the builder to update
      Returns:
      the updated builder
    • isUp

      protected abstract boolean isUp(com.tangosol.util.HealthCheck healthCheck)
      Returns true if the Coherence HealthCheck is healthy, otherwise returns false.
      Parameters:
      healthCheck - the Coherence HealthCheck
      Returns:
      true if the Coherence HealthCheck is healthy, otherwise returns false