Class DatabaseHealthCheck

java.lang.Object
com.codahale.metrics.health.HealthCheck
com.sanctionco.thunder.dao.DatabaseHealthCheck
Direct Known Subclasses:
DynamoDbHealthCheck, MongoDbHealthCheck

public class DatabaseHealthCheck extends com.codahale.metrics.health.HealthCheck
The base class for all database health check classes. This class should not be used as an actual health check for the application. See DynamoDbHealthCheck for an implementation example.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.codahale.metrics.health.HealthCheck

    com.codahale.metrics.health.HealthCheck.Result, com.codahale.metrics.health.HealthCheck.ResultBuilder
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.codahale.metrics.health.HealthCheck.Result
    Implements the check() method for a Dropwizard HealthCheck.

    Methods inherited from class com.codahale.metrics.health.HealthCheck

    clock, execute

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DatabaseHealthCheck

      public DatabaseHealthCheck()
  • Method Details

    • check

      protected com.codahale.metrics.health.HealthCheck.Result check()
      Implements the check() method for a Dropwizard HealthCheck. This method will always throw an IllegalStateException because this method should not be used at application runtime.
      Specified by:
      check in class com.codahale.metrics.health.HealthCheck
      Throws:
      IllegalStateException - always