java.lang.Object
io.helidon.dbclient.health.DbClientHealthCheck
- All Implemented Interfaces:
HealthCheck
Database health check.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DbClientHealthCheck.BuilderA fluent API builder to create a fully customized database health check.call()Call a health check.static DbClientHealthCheckCreate a health check with configured settings for the database.protected DbClientdbClient()protected abstract voidexecPing()Execute the ping statement.name()Name of this health check, used in output when details are requested.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.health.HealthCheck
path, type
-
Method Details
-
create
Create a health check with configured settings for the database. This health check will execute health check as defined in providedConfignode.- Parameters:
dbClient- database client used to execute health check statementconfig-Confignode with health check configuration- Returns:
- health check that can be used with health services
-
builder
A fluent API builder to create a fully customized database health check.- Parameters:
dbClient- database- Returns:
- a new builder
-
execPing
protected abstract void execPing()Execute the ping statement. -
call
Description copied from interface:HealthCheckCall a health check.- Specified by:
callin interfaceHealthCheck- Returns:
- health response
-
dbClient
-
name
Description copied from interface:HealthCheckName of this health check, used in output when details are requested.- Specified by:
namein interfaceHealthCheck- Returns:
- name of this health check, defaults to simple class name
-