Package io.dropwizard.redis.health
Class RedisHealthCheck
- java.lang.Object
-
- com.codahale.metrics.health.HealthCheck
-
- io.dropwizard.redis.health.RedisHealthCheck
-
public class RedisHealthCheck extends com.codahale.metrics.health.HealthCheckPerforms health checks against a Redis cluster. Health check pings the current master, determining whether it is healthy for reads/writes.
-
-
Field Summary
Fields Modifier and Type Field Description static StringHEALTHY_STRING
-
Constructor Summary
Constructors Constructor Description RedisHealthCheck(Pingable client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.codahale.metrics.health.HealthCheck.Resultcheck()PingablegetClient()
-
-
-
Field Detail
-
HEALTHY_STRING
public static final String HEALTHY_STRING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RedisHealthCheck
public RedisHealthCheck(Pingable client)
-
-
Method Detail
-
getClient
public Pingable getClient()
-
check
protected com.codahale.metrics.health.HealthCheck.Result check()
- Specified by:
checkin classcom.codahale.metrics.health.HealthCheck
-
-