public abstract class HealthCheck
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HealthCheck.Result
The result of a
HealthCheck being run. |
Modifier and Type | Method and Description |
---|---|
HealthCheck.Result |
execute()
Executes the health check, catching and handling any exceptions raised by
check() . |
java.lang.String |
getName()
Returns the health check's name.
|
public java.lang.String getName()
public HealthCheck.Result execute()
check()
.HealthCheck.Result
; otherwise, an unhealthy
HealthCheck.Result
with a descriptive error message or exception