|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.health.check.AbstractHealthCheck
com.caucho.server.admin.CpuHealthCheckImpl
com.caucho.health.check.CpuHealthCheck
@Singleton @Configurable @Named public class CpuHealthCheck
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 |
|---|
public CpuHealthCheck()
| Method Detail |
|---|
public void setCpuMeters(java.util.ArrayList<AbstractMeter> cpuMeters)
setCpuMeters in class CpuHealthCheckImpl@Configurable public void setWarningThreshold(int warningThreshold)
setWarningThreshold in class CpuHealthCheckImpl@Configurable public void setCriticalThreshold(int criticalThreshold)
setCriticalThreshold in class CpuHealthCheckImplprotected AbstractHealthCheck findDelegate(HealthService healthService)
AbstractHealthCheck
findDelegate in class AbstractHealthCheckprotected CpuHealthCheck getDelegate()
getDelegate in class AbstractHealthCheck
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||