com.caucho.health.check
Class HealthSystemHealthCheck
java.lang.Object
com.caucho.health.check.AbstractHealthCheck
com.caucho.env.health.HealthServiceHealthCheckImpl
com.caucho.health.check.HealthSystemHealthCheck
- All Implemented Interfaces:
- HealthCheck
@Singleton
@Configurable
@Named
public class HealthSystemHealthCheck
- extends HealthServiceHealthCheckImpl
Monitors the health system itself by using a separate thread to determine
if health checking is frozen or taking too long.
Generates FATAL if health checking has not occurred within
freeze timeout (default 15 minutes)
Generates FATAL if health checking has not complete within acceptable
time based on HealthSystem startup delay, period, and recheck parameters.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HealthSystemHealthCheck
public HealthSystemHealthCheck()
setFreezeTimeout
@Configurable
public void setFreezeTimeout(Period freezeTimeout)
- Set the max time for no health checks to occur to determine the
health system is frozen (default 15 minutes)
setThreadCheckPeriod
@Configurable
public void setThreadCheckPeriod(Period threadCheckPeriod)
- Set the polling frequency of the independent thread (default 1 minute)
findDelegate
protected AbstractHealthCheck findDelegate(HealthService healthService)
- Description copied from class:
AbstractHealthCheck
- Finds and returns any delegate health check. Used to configure
singleton system health checks.
- Overrides:
findDelegate in class AbstractHealthCheck
getDelegate
protected HealthSystemHealthCheck getDelegate()
- Overrides:
getDelegate in class AbstractHealthCheck