public class HealthAggregatorEurekaHealthCheckHandler
extends java.lang.Object
implements com.netflix.appinfo.HealthCheckHandler
@Inject
EurekaClient eurekaClient;
@Inject
HealthCheckAggregator healthCheckAggregator;
@Inject
IndicatorMatcher matcher;
@PostConstruct
public void init() {
eurekaClient.registerHealthCheck(
new HealthAggregatorEurekaHealthCheckHandler(healthCheckAggregator, matcher));
}
| Constructor and Description |
|---|
HealthAggregatorEurekaHealthCheckHandler(com.netflix.runtime.health.api.HealthCheckAggregator healthCheckAggregator,
com.netflix.runtime.health.api.IndicatorMatcher matcher) |
| Modifier and Type | Method and Description |
|---|---|
com.netflix.appinfo.InstanceInfo.InstanceStatus |
getStatus(com.netflix.appinfo.InstanceInfo.InstanceStatus currentStatus) |