Package com.sanctionco.thunder.dao
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.codahale.metrics.health.HealthCheck.Result
check()
Implements thecheck()
method for a Dropwizard HealthCheck.Methods inherited from class com.codahale.metrics.health.HealthCheck
clock, execute
-
Constructor Details
-
DatabaseHealthCheck
public DatabaseHealthCheck()
-
-
Method Details
-
check
protected com.codahale.metrics.health.HealthCheck.Result check()Implements thecheck()
method for a Dropwizard HealthCheck. This method will always throw anIllegalStateException
because this method should not be used at application runtime.- Specified by:
check
in classcom.codahale.metrics.health.HealthCheck
- Throws:
IllegalStateException
- always
-