类 CassandraHealthIndicator
- java.lang.Object
- org.springframework.boot.actuate.health.AbstractHealthIndicator
- org.springframework.boot.actuate.health.CassandraHealthIndicator
- 所有已实现的接口:
HealthIndicator
public class CassandraHealthIndicator extends AbstractHealthIndicator
Simple implementation of aHealthIndicator
returning status information for Cassandra data stores.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 CassandraHealthIndicator(org.springframework.data.cassandra.core.CassandraOperations cassandraOperations)
Create a newCassandraHealthIndicator
instance.
构造器详细资料
CassandraHealthIndicator
public CassandraHealthIndicator(org.springframework.data.cassandra.core.CassandraOperations cassandraOperations)
Create a newCassandraHealthIndicator
instance.- 参数:
cassandraOperations
- the Cassandra operations
方法详细资料
doHealthCheck
protected void doHealthCheck(Health.Builder builder) throws Exception
从类复制的说明:AbstractHealthIndicator
Actual health check logic.- 指定者:
doHealthCheck
在类中AbstractHealthIndicator
- 参数:
builder
- theHealth.Builder
to report health status and details- 抛出:
Exception
- anyException
that should create aStatus.DOWN
system status.