com.caucho.health
Class HealthSystem

java.lang.Object
  extended by com.caucho.health.HealthSystem

@Singleton
@Configurable
public class HealthSystem
extends java.lang.Object

Configures the check frequency and recheck rules of the health checking system.

<!-- 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 Summary
HealthSystem()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HealthSystem

public HealthSystem()
Method Detail

setEnabled

@Configurable
public void setEnabled(boolean enabled)
Set all health checking enabled or disabled


setStartupDelay

@Configurable
public void setStartupDelay(Period delay)
Set the time after startup before actions are triggered

delay deprecates initialSleepTime


setDelay

@Configurable
public void setDelay(Period delay)
Set the time after startup before actions are triggered

delay deprecates initialSleepTime


setPeriod

@Configurable
public void setPeriod(Period period)
Sets the time between checks

period deprecates sleepTime


setRecheckPeriod

@Configurable
public void setRecheckPeriod(Period recheckPeriod)
Sets the time between rechecks

recheckPeriod deprecates retryTime


setRecheckMax

@Configurable
public void setRecheckMax(int recheckMax)
Sets the number of rechecks before returning to the normal checking period

recheckMax deprecates retryCount