public class Rotation
extends com.codahale.metrics.health.HealthCheck
HealthCheck that checks to see if the service is in rotation or not.| Constructor and Description |
|---|
Rotation(String rotationStatusFile)
Takes as input the file path of the file which maintains the service rotation status
|
| Modifier and Type | Method and Description |
|---|---|
protected com.codahale.metrics.health.HealthCheck.Result |
check()
Returns a
Result that indicates healthy(in rotation) or unhealthy(out of rotation) |
public Rotation(String rotationStatusFile)
rotationStatusFile - Full path of rotation status fileprotected com.codahale.metrics.health.HealthCheck.Result check()
throws Exception
Result that indicates healthy(in rotation) or unhealthy(out of rotation)check in class com.codahale.metrics.health.HealthCheckResult that indicates healthy(in rotation) or unhealthy(out of rotation)Exception - If any exception occursCopyright © 2016. All rights reserved.