java.lang.Object
io.helidon.dbclient.health.DbClientHealthCheck
- All Implemented Interfaces:
HealthCheck
Database health check.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DbClientHealthCheck.Builder
A fluent API builder to create a fully customized database health check.call()
Call a health check.static DbClientHealthCheck
Create a health check with configured settings for the database.protected DbClient
dbClient()
protected abstract void
execPing()
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, wait
Methods 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 providedConfig
node.- Parameters:
dbClient
- database client used to execute health check statementconfig
-Config
node 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:HealthCheck
Call a health check.- Specified by:
call
in interfaceHealthCheck
- Returns:
- health response
-
dbClient
-
name
Description copied from interface:HealthCheck
Name of this health check, used in output when details are requested.- Specified by:
name
in interfaceHealthCheck
- Returns:
- name of this health check, defaults to simple class name
-