Class DbClientHealthCheck

java.lang.Object
io.helidon.dbclient.health.DbClientHealthCheck
All Implemented Interfaces:
HealthCheck

public abstract class DbClientHealthCheck extends Object implements HealthCheck
Database health check.
  • Method Details

    • create

      public static DbClientHealthCheck create(DbClient dbClient, Config config)
      Create a health check with configured settings for the database. This health check will execute health check as defined in provided Config node.
      Parameters:
      dbClient - database client used to execute health check statement
      config - Config node with health check configuration
      Returns:
      health check that can be used with health services
    • builder

      public static DbClientHealthCheck.Builder builder(DbClient dbClient)
      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

      public HealthCheckResponse call()
      Description copied from interface: HealthCheck
      Call a health check.
      Specified by:
      call in interface HealthCheck
      Returns:
      health response
    • dbClient

      protected DbClient dbClient()
    • name

      public String name()
      Description copied from interface: HealthCheck
      Name of this health check, used in output when details are requested.
      Specified by:
      name in interface HealthCheck
      Returns:
      name of this health check, defaults to simple class name