类 AbstractHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
- 所有已实现的接口:
HealthContributor,HealthIndicator
- 直接已知子类:
AvailabilityStateHealthIndicator,CassandraDriverHealthIndicator,CouchbaseHealthIndicator,DataSourceHealthIndicator,DiskSpaceHealthIndicator,ElasticsearchRestClientHealthIndicator,HazelcastHealthIndicator,JmsHealthIndicator,LdapHealthIndicator,MailHealthIndicator,MongoHealthIndicator,Neo4jHealthIndicator,PingHealthIndicator,RabbitHealthIndicator,RedisHealthIndicator,SslHealthIndicator
Base
HealthIndicator implementations that encapsulates creation of
Health instance and error handling.
This implementation is only suitable if an Exception raised from
doHealthCheck(org.springframework.boot.actuate.health.Health.Builder) should
create a Status.DOWN health status.
- 从以下版本开始:
- 1.1.0
- 作者:
- Christian Dupuis
-
构造器概要
构造器限定符构造器说明protectedCreate a newAbstractHealthIndicatorinstance with a defaulthealthCheckFailedMessage.protectedAbstractHealthIndicator(String healthCheckFailedMessage) Create a newAbstractHealthIndicatorinstance with a specific message to log when the health check fails.protectedAbstractHealthIndicator(Function<Exception, String> healthCheckFailedMessage) Create a newAbstractHealthIndicatorinstance with a specific message to log when the health check fails. -
方法概要
修饰符和类型方法说明protected abstract voiddoHealthCheck(Health.Builder builder) Actual health check logic.final Healthhealth()Return an indication of health.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
构造器详细资料
-
AbstractHealthIndicator
protected AbstractHealthIndicator()Create a newAbstractHealthIndicatorinstance with a defaulthealthCheckFailedMessage. -
AbstractHealthIndicator
Create a newAbstractHealthIndicatorinstance with a specific message to log when the health check fails.- 参数:
healthCheckFailedMessage- the message to log on health check failure- 从以下版本开始:
- 2.0.0
-
AbstractHealthIndicator
Create a newAbstractHealthIndicatorinstance with a specific message to log when the health check fails.- 参数:
healthCheckFailedMessage- the message to log on health check failure- 从以下版本开始:
- 2.0.0
-
-
方法详细资料
-
health
从接口复制的说明:HealthIndicatorReturn an indication of health.- 指定者:
health在接口中HealthIndicator- 返回:
- the health
-
doHealthCheck
Actual health check logic.- 参数:
builder- theHealth.Builderto report health status and details- 抛出:
Exception- anyExceptionthat should create aStatus.DOWNsystem status.
-