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
,
StatusAggregator
,
HealthAggregator
Constructor and Description |
---|
EurekaHealthCheckHandler(org.springframework.boot.actuate.health.HealthAggregator healthAggregator)
Deprecated.
|
EurekaHealthCheckHandler(org.springframework.boot.actuate.health.StatusAggregator statusAggregator) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected org.springframework.boot.actuate.health.CompositeHealthIndicator |
getHealthIndicator()
Deprecated.
|
protected com.netflix.appinfo.InstanceInfo.InstanceStatus |
getHealthStatus() |
com.netflix.appinfo.InstanceInfo.InstanceStatus |
getStatus(com.netflix.appinfo.InstanceInfo.InstanceStatus instanceStatus) |
protected org.springframework.boot.actuate.health.Status |
getStatus(org.springframework.boot.actuate.health.StatusAggregator statusAggregator) |
protected com.netflix.appinfo.InstanceInfo.InstanceStatus |
mapToInstanceStatus(org.springframework.boot.actuate.health.Status status) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
@Deprecated public EurekaHealthCheckHandler(org.springframework.boot.actuate.health.HealthAggregator healthAggregator)
public EurekaHealthCheckHandler(org.springframework.boot.actuate.health.StatusAggregator statusAggregator)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public com.netflix.appinfo.InstanceInfo.InstanceStatus getStatus(com.netflix.appinfo.InstanceInfo.InstanceStatus instanceStatus)
getStatus
in interface com.netflix.appinfo.HealthCheckHandler
protected com.netflix.appinfo.InstanceInfo.InstanceStatus getHealthStatus()
protected org.springframework.boot.actuate.health.Status getStatus(org.springframework.boot.actuate.health.StatusAggregator statusAggregator)
protected com.netflix.appinfo.InstanceInfo.InstanceStatus mapToInstanceStatus(org.springframework.boot.actuate.health.Status status)
@Deprecated protected org.springframework.boot.actuate.health.CompositeHealthIndicator getHealthIndicator()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.