com.caucho.health.check
Class HealthSystemHealthCheck

java.lang.Object
  extended by com.caucho.health.check.AbstractHealthCheck
      extended by com.caucho.env.health.HealthServiceHealthCheckImpl
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.env.health.HealthServiceHealthCheckImpl
HealthServiceHealthCheckImpl.HealthSystemHealthCheckWorker
 
Constructor Summary
HealthSystemHealthCheck()
           
 
Method Summary
protected  AbstractHealthCheck findDelegate(HealthService healthService)
          Finds and returns any delegate health check.
protected  HealthSystemHealthCheck getDelegate()
           
 void setFreezeTimeout(Period freezeTimeout)
          Set the max time for no health checks to occur to determine the health system is frozen (default 15 minutes)
 void setThreadCheckPeriod(Period threadCheckPeriod)
          Set the polling frequency of the independent thread (default 1 minute)
 
Methods inherited from class com.caucho.env.health.HealthServiceHealthCheckImpl
checkHealth, getFreezeTimeout, getThreadCheckPeriod, setFreezeTimeoutImpl, setThreadCheckPeriodImpl, start, stop
 
Methods inherited from class com.caucho.health.check.AbstractHealthCheck
getName, init, isEnabled, setEnabled, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HealthSystemHealthCheck

public HealthSystemHealthCheck()
Method Detail

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