@Singleton @Configurable public class HealthSystem extends java.lang.Object
<!-- These are the default values -->
<health:HealthSystem>
<enabled>true</enabled>
<startup-delay>15m</startup-delay>
<period>5m</period>
<recheck-period>30s</recheck-period>
<recheck-max>10</recheck-max>
</health:HealthSystem>
Constructor and Description |
---|
HealthSystem() |
Modifier and Type | Method and Description |
---|---|
void |
setCheckTimeout(Period period)
Sets the check timeout.
|
void |
setDelay(Period delay)
Set the time after startup before actions are triggered
|
void |
setEnabled(boolean enabled)
Set all health checking enabled or disabled
|
void |
setPeriod(Period period)
Sets the time between checks
|
void |
setRecheckMax(int recheckMax)
Sets the number of rechecks before returning to the normal checking period
|
void |
setRecheckPeriod(Period recheckPeriod)
Sets the time between rechecks
|
void |
setStartupDelay(Period delay)
Set the time after startup before actions are triggered
|
@Configurable public void setEnabled(boolean enabled)
@Configurable public void setStartupDelay(Period delay)
delay deprecates initialSleepTime
@Configurable public void setDelay(Period delay)
delay deprecates initialSleepTime
@Configurable public void setPeriod(Period period)
period deprecates sleepTime
@Configurable public void setRecheckPeriod(Period recheckPeriod)
recheckPeriod deprecates retryTime
@Configurable public void setRecheckMax(int recheckMax)
recheckMax deprecates retryCount
@Configurable public void setCheckTimeout(Period period)
recheckPeriod deprecates retryTime