Class Neo4jHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
org.springframework.boot.actuate.neo4j.Neo4jHealthIndicator
- All Implemented Interfaces:
HealthContributor
,HealthIndicator
HealthIndicator
that tests the status of a Neo4j by executing a Cypher
statement and extracting server and database information.- Since:
- 2.0.0
- Author:
- Eric Spiegelberg, Stephane Nicoll, Michael J. Simons
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doHealthCheck
(Health.Builder builder) Actual health check logic.Methods inherited from class org.springframework.boot.actuate.health.AbstractHealthIndicator
health
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
Constructor Details
-
Neo4jHealthIndicator
public Neo4jHealthIndicator(org.neo4j.driver.Driver driver)
-
-
Method Details
-
doHealthCheck
Description copied from class:AbstractHealthIndicator
Actual health check logic.- Specified by:
doHealthCheck
in classAbstractHealthIndicator
- Parameters:
builder
- theHealth.Builder
to report health status and details
-