public abstract class AbstractHealthCheck extends java.lang.Object implements HealthCheck
| Constructor and Description |
|---|
AbstractHealthCheck() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractHealthCheck |
findDelegate(HealthService healthService)
Finds and returns any delegate health check.
|
protected AbstractHealthCheck |
getDelegate() |
HealthCheckResult |
getLastResult(HealthService healthService) |
long |
getLogPeriod() |
java.lang.String |
getName() |
protected boolean |
hasDelegate() |
void |
init() |
boolean |
isEnabled() |
void |
logResult(HealthCheckResult result,
java.util.logging.Logger log) |
void |
setEnabled(boolean isEnabled) |
void |
setLogPeriod(Period period) |
void |
setName(java.lang.String name) |
void |
silenceFor(Period period) |
void |
start() |
void |
stop() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckHealthprotected AbstractHealthCheck findDelegate(HealthService healthService)
@Configurable public void setEnabled(boolean isEnabled)
public boolean isEnabled()
isEnabled in interface HealthCheck@Configurable public void setName(java.lang.String name)
public java.lang.String getName()
getName in interface HealthCheck@PostConstruct public void init()
public void start()
start in interface HealthCheckpublic void stop()
stop in interface HealthCheckprotected AbstractHealthCheck getDelegate()
protected boolean hasDelegate()
public java.lang.String toString()
toString in class java.lang.Object@Configurable public void silenceFor(Period period)
silenceFor in interface HealthCheck@Configurable public void setLogPeriod(Period period)
setLogPeriod in interface HealthCheckpublic long getLogPeriod()
public void logResult(HealthCheckResult result, java.util.logging.Logger log)
logResult in interface HealthCheckpublic HealthCheckResult getLastResult(HealthService healthService)
getLastResult in interface HealthCheck