public class CPUProcessCongestionMonitor extends Object implements CongestionMonitor
| Constructor and Description |
|---|
CPUProcessCongestionMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCongestionListener(CongestionListener listener)
|
double |
getBackToNormalCPUThreshold() |
double |
getCPUThreshold() |
double |
getCpuUsage() |
String |
getSource()
Get the name of underlying source
|
void |
monitor()
The user should call this method periodically to monitor underlying
resource
|
void |
removeCongestionListener(CongestionListener listener)
Remove
CongestionListener |
void |
setBackToNormalCPUThreshold(double backToNormalCPUThreshold) |
void |
setCPUThreshold(double cpuThreshold) |
public void setBackToNormalCPUThreshold(double backToNormalCPUThreshold)
backToNormalPercentageOfCPUUsed - the backToNormalPercentageOfCPUUsed to setpublic double getBackToNormalCPUThreshold()
public void setCPUThreshold(double cpuThreshold)
cpuThreshold - the cpuThreshold to setpublic double getCPUThreshold()
public void monitor()
CongestionMonitormonitor in interface CongestionMonitorpublic double getCpuUsage()
public void addCongestionListener(CongestionListener listener)
CongestionMonitoraddCongestionListener in interface CongestionMonitorpublic void removeCongestionListener(CongestionListener listener)
CongestionMonitorCongestionListenerremoveCongestionListener in interface CongestionMonitorpublic String getSource()
CongestionMonitorgetSource in interface CongestionMonitorCopyright © 2015. All Rights Reserved.