com.caucho.health.check
Class CpuHealthCheck

java.lang.Object
  extended by com.caucho.health.check.AbstractHealthCheck
      extended by com.caucho.server.admin.CpuHealthCheckImpl
          extended by com.caucho.health.check.CpuHealthCheck
All Implemented Interfaces:
HealthCheck

@Singleton
@Configurable
@Named
public class CpuHealthCheck
extends CpuHealthCheckImpl

Monitors CPU usage.

Generates WARNING if any CPU exceeds the warning threshold (default 95%)

Generates CRITICAL if any CPU exceeds the failure threshold (default disabled)


Constructor Summary
CpuHealthCheck()
           
 
Method Summary
protected  AbstractHealthCheck findDelegate(HealthService healthService)
          Finds and returns any delegate health check.
protected  CpuHealthCheck getDelegate()
           
 void setCpuMeters(java.util.ArrayList<AbstractMeter> cpuMeters)
           
 void setCriticalThreshold(int criticalThreshold)
          Set CPU usage critical threshold (0-100, default 200 (disabled))
 void setWarningThreshold(int warningThreshold)
          Set CPU usage warning threshold (0-100, default 95)
 
Methods inherited from class com.caucho.server.admin.CpuHealthCheckImpl
checkHealth, getCriticalThreshold, getWarningThreshold
 
Methods inherited from class com.caucho.health.check.AbstractHealthCheck
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

CpuHealthCheck

public CpuHealthCheck()
Method Detail

setCpuMeters

public void setCpuMeters(java.util.ArrayList<AbstractMeter> cpuMeters)
Overrides:
setCpuMeters in class CpuHealthCheckImpl

setWarningThreshold

@Configurable
public void setWarningThreshold(int warningThreshold)
Set CPU usage warning threshold (0-100, default 95)

Overrides:
setWarningThreshold in class CpuHealthCheckImpl

setCriticalThreshold

@Configurable
public void setCriticalThreshold(int criticalThreshold)
Set CPU usage critical threshold (0-100, default 200 (disabled))

Overrides:
setCriticalThreshold in class CpuHealthCheckImpl

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 CpuHealthCheck getDelegate()
Overrides:
getDelegate in class AbstractHealthCheck