@Requires(property="endpoints.health.cassandra.enabled",notEquals="false") @Requires(beans={io.micronaut.management.endpoint.health.HealthEndpoint.class,com.datastax.oss.driver.api.core.CqlSession.class})
@Singleton
public class CassandraHealthIndicator
extends io.micronaut.management.health.indicator.AbstractHealthIndicator<java.util.Map<java.lang.String,java.lang.Object>>
HealthIndicator
for Cassandra.Constructor and Description |
---|
CassandraHealthIndicator(com.datastax.oss.driver.api.core.CqlSession cqlSession)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getHealthInformation() |
protected java.lang.String |
getName() |
getHealthResult, getResult, setExecutorService
public CassandraHealthIndicator(com.datastax.oss.driver.api.core.CqlSession cqlSession)
cqlSession
- The The cassandra CqlSession
to query for detailsprotected java.util.Map<java.lang.String,java.lang.Object> getHealthInformation()
getHealthInformation
in class io.micronaut.management.health.indicator.AbstractHealthIndicator<java.util.Map<java.lang.String,java.lang.Object>>
protected java.lang.String getName()
getName
in class io.micronaut.management.health.indicator.AbstractHealthIndicator<java.util.Map<java.lang.String,java.lang.Object>>