Package org.kiwiproject.curator.health
Class CuratorHealthCheck
- java.lang.Object
-
- com.codahale.metrics.health.HealthCheck
-
- org.kiwiproject.curator.health.CuratorHealthCheck
-
public class CuratorHealthCheck extends com.codahale.metrics.health.HealthCheckA Dropwizard Metrics health check for aCuratorFrameworkinstance.
-
-
Constructor Summary
Constructors Constructor Description CuratorHealthCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.codahale.metrics.health.HealthCheck.Resultcheck()Check health of aCuratorFramework.
-
-
-
Method Detail
-
check
protected com.codahale.metrics.health.HealthCheck.Result check() throws ExceptionCheck health of aCuratorFramework.The
CuratorFrameworkis considered healthy if its state isCuratorFrameworkState.STARTED, is connected in read/write state, and can list top-level znodes. Otherwise it is considered unhealthy, even if the state isCuratorFrameworkState.LATENT.- Specified by:
checkin classcom.codahale.metrics.health.HealthCheck- Returns:
- the
HealthCheck.Result - Throws:
Exception- if anything is really wrong
-
-