Class CouchbaseHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
org.springframework.boot.actuate.couchbase.CouchbaseHealthIndicator
- All Implemented Interfaces:
HealthContributor,HealthIndicator
HealthIndicator for Couchbase.- Since:
- 2.0.0
- Author:
- EddĂș MelĂ©ndez, Stephane Nicoll
-
Constructor Summary
ConstructorsConstructorDescriptionCouchbaseHealthIndicator(com.couchbase.client.java.Cluster cluster) Create an indicator with the specifiedCluster. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoHealthCheck(Health.Builder builder) Actual health check logic.Methods inherited from class org.springframework.boot.actuate.health.AbstractHealthIndicator
healthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
Constructor Details
-
CouchbaseHealthIndicator
public CouchbaseHealthIndicator(com.couchbase.client.java.Cluster cluster) Create an indicator with the specifiedCluster.- Parameters:
cluster- the Couchbase Cluster- Since:
- 2.0.6
-
-
Method Details
-
doHealthCheck
Description copied from class:AbstractHealthIndicatorActual health check logic.- Specified by:
doHealthCheckin classAbstractHealthIndicator- Parameters:
builder- theHealth.Builderto report health status and details- Throws:
Exception- anyExceptionthat should create aStatus.DOWNsystem status.
-