类 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

public abstract class AbstractHealthIndicator extends Object implements HealthIndicator
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
  • 构造器详细资料

    • AbstractHealthIndicator

      protected AbstractHealthIndicator()
      Create a new AbstractHealthIndicator instance with a default healthCheckFailedMessage.
    • AbstractHealthIndicator

      protected AbstractHealthIndicator(String healthCheckFailedMessage)
      Create a new AbstractHealthIndicator instance with a specific message to log when the health check fails.
      参数:
      healthCheckFailedMessage - the message to log on health check failure
      从以下版本开始:
      2.0.0
    • AbstractHealthIndicator

      protected AbstractHealthIndicator(Function<Exception,String> healthCheckFailedMessage)
      Create a new AbstractHealthIndicator instance with a specific message to log when the health check fails.
      参数:
      healthCheckFailedMessage - the message to log on health check failure
      从以下版本开始:
      2.0.0
  • 方法详细资料