public class EurekaHealthCheckHandler extends Object implements com.netflix.appinfo.HealthCheckHandler, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
InstanceInfo.InstanceStatus
that will be propagated to Eureka registry.
On each heartbeat Eureka performs the health check invoking registered HealthCheckHandler. By default this
implementation will perform aggregation of all registered HealthIndicator
through registered HealthAggregator.HealthCheckHandler,
HealthAggregator| Constructor and Description |
|---|
EurekaHealthCheckHandler(org.springframework.boot.actuate.health.HealthAggregator healthAggregator) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected com.netflix.appinfo.InstanceInfo.InstanceStatus |
getHealthStatus() |
com.netflix.appinfo.InstanceInfo.InstanceStatus |
getStatus(com.netflix.appinfo.InstanceInfo.InstanceStatus instanceStatus) |
protected com.netflix.appinfo.InstanceInfo.InstanceStatus |
mapToInstanceStatus(org.springframework.boot.actuate.health.Status status) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public EurekaHealthCheckHandler(org.springframework.boot.actuate.health.HealthAggregator healthAggregator)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic com.netflix.appinfo.InstanceInfo.InstanceStatus getStatus(com.netflix.appinfo.InstanceInfo.InstanceStatus instanceStatus)
getStatus in interface com.netflix.appinfo.HealthCheckHandlerprotected com.netflix.appinfo.InstanceInfo.InstanceStatus getHealthStatus()
protected com.netflix.appinfo.InstanceInfo.InstanceStatus mapToInstanceStatus(org.springframework.boot.actuate.health.Status status)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.