com.caucho.health.check
Class HeartbeatHealthCheck

java.lang.Object
  extended by com.caucho.health.check.AbstractHealthCheck
      extended by com.caucho.cloud.heartbeat.HeartbeatHealthCheckImpl
          extended by com.caucho.health.check.HeartbeatHealthCheck
All Implemented Interfaces:
HealthCheck

@Singleton
@Configurable
@Named
public class HeartbeatHealthCheck
extends HeartbeatHealthCheckImpl

Monitors for heartbeats from other members of the cluster.

Generates WARNING if no heartbeat has been received from a know member of the cluster.

Generates WARNING if a heartbeat has not been received in the last 180 seconds from a known member of the cluster.


Constructor Summary
HeartbeatHealthCheck()
           
 
Method Summary
protected  AbstractHealthCheck findDelegate(HealthService healthService)
          Finds and returns any delegate health check.
 
Methods inherited from class com.caucho.cloud.heartbeat.HeartbeatHealthCheckImpl
checkHealth
 
Methods inherited from class com.caucho.health.check.AbstractHealthCheck
getDelegate, getName, init, isEnabled, setEnabled, setName, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeartbeatHealthCheck

public HeartbeatHealthCheck()
Method Detail

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