public class HttpHealthCheck
extends com.codahale.metrics.health.HealthCheck
| Constructor and Description |
|---|
HttpHealthCheck(String url) |
HttpHealthCheck(String url,
javax.ws.rs.client.Client client) |
HttpHealthCheck(String url,
Duration readTimeout,
Duration connectionTimeout) |
| Modifier and Type | Method and Description |
|---|---|
protected com.codahale.metrics.health.HealthCheck.Result |
check() |
protected HttpHealthResponse |
httpCheck(String url)
Performs a health check via HTTP against an external dependency.
|
protected boolean |
isHealthResponseValid(HttpHealthResponse httpHealthResponse)
Validates the response from the health check.
|
public HttpHealthCheck(@Nonnull String url, Duration readTimeout, Duration connectionTimeout)
protected com.codahale.metrics.health.HealthCheck.Result check()
check in class com.codahale.metrics.health.HealthCheckprotected HttpHealthResponse httpCheck(String url)
url - the URL to check.protected boolean isHealthResponseValid(HttpHealthResponse httpHealthResponse)
httpHealthResponse - The response resulting from the http health check.Copyright © 2011. All rights reserved.