public abstract class AbstractHealthIndicator extends Object implements HealthIndicator
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.
Constructor and Description |
---|
AbstractHealthIndicator() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doHealthCheck(Health.Builder builder)
Actual health check logic.
|
Health |
health() |
public final Health health()
health
in interface HealthIndicator
protected abstract void doHealthCheck(Health.Builder builder) throws Exception
builder
- the Health.Builder
to report health status and detailsException
- any Exception
that should create a Status.DOWN
system status.Copyright © 2014 Pivotal Software, Inc.. All rights reserved.