|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.measurable.cpu.SystemCPUHandler
public class SystemCPUHandler
CPU monitor that obtains system CPU utilization. This utility uses either Hyperic SIGAR, JDK 1.6 or operating system utilities to obtain CPU utilization for the machine. Hyperic SIGAR is preferred. If not available JDK 1.6 facilities will be used. If neither of these approaches work operating system utilities will be used (depending on the OS) to obtain CPU utilization.
Note: Hyperic SIGAR is licensed under the GPL with a FLOSS license exception, allowing it to be included with the Rio Apache License v2 distribution. If for some reason the GPL cannot be used with your distribution of Rio, remove the RIO_HOME/lib/hyperic directory.
| Constructor Summary | |
|---|---|
SystemCPUHandler()
|
|
| Method Summary | |
|---|---|
CpuUtilization |
getMeasuredResource()
Get the MeasuredResource |
void |
setID(String id)
Set the identifier for the resource being measured |
void |
setThresholdValues(ThresholdValues tVals)
Set the ThresholdValues for the resource being measured |
void |
terminate()
Terminate any collection mechanisms |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemCPUHandler()
| Method Detail |
|---|
public void setID(String id)
MeasurableMonitor
setID in interface MeasurableMonitor<CpuUtilization>id - The identifierpublic void setThresholdValues(ThresholdValues tVals)
MeasurableMonitor
setThresholdValues in interface MeasurableMonitor<CpuUtilization>tVals - The ThresholdValuespublic CpuUtilization getMeasuredResource()
MeasurableMonitor
getMeasuredResource in interface MeasurableMonitor<CpuUtilization>MeasuredResource
for the MeasurableMonitorpublic void terminate()
MeasurableMonitor
terminate in interface MeasurableMonitor<CpuUtilization>
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||