Package org.ctan.site.health
Class AppHealthCheck
java.lang.Object
com.codahale.metrics.health.HealthCheck
org.ctan.site.health.AppHealthCheck
public class AppHealthCheck
extends com.codahale.metrics.health.HealthCheck
The class
AppHealthCheck contains the health check for the
application. It checks that
- the configuration is not null.
- the sub-configuration
ctanis not null. - the sub-configuration
indexis not null. - the attribute
directoryof the sub-configurationindexis not null. - the attribute
directoryof the sub-configurationindexpoints to an existing directory.
-
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
ConstructorsConstructorDescriptionAppHealthCheck(CtanConfiguration config) This is the constructor for the classAppHealthCheck. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.codahale.metrics.health.HealthCheck.Resultcheck()Methods inherited from class com.codahale.metrics.health.HealthCheck
clock, execute
-
Constructor Details
-
AppHealthCheck
This is the constructor for the classAppHealthCheck.- Parameters:
config- the configuration
-
-
Method Details
-
check
- Specified by:
checkin classcom.codahale.metrics.health.HealthCheck- Throws:
Exception- See Also:
-