|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.measurable.cpu.ProcessCPUHandler
public class ProcessCPUHandler
CPU monitor that obtains process CPU utilization. This utility uses either
Hyperic SIGAR, or OperatingSystemMXBean to obtain
process CPU time. Hyperic SIGAR is preferred. If not available
the com.sun.management.OperatingSystemMXBean will be used.
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 | |
|---|---|
ProcessCPUHandler()
|
|
ProcessCPUHandler(long pid)
|
|
| Method Summary | |
|---|---|
MeasuredResource |
getMeasuredResource()
Get the MeasuredResource |
void |
setID(String id)
Set the identifier for the resource being measured |
void |
setMXBean(OperatingSystemMXBean mxBean)
Set the platform MBean to monitor |
void |
setPID(long pid)
|
void |
setStartTime(long startTime)
|
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 ProcessCPUHandler()
public ProcessCPUHandler(long pid)
| Method Detail |
|---|
public void setMXBean(OperatingSystemMXBean mxBean)
MXBeanMonitor
setMXBean in interface MXBeanMonitor<OperatingSystemMXBean>mxBean - The platform MBeanpublic void setPID(long pid)
public void setStartTime(long startTime)
public void setID(String id)
MeasurableMonitor
setID in interface MeasurableMonitorid - The identifierpublic void setThresholdValues(ThresholdValues tVals)
MeasurableMonitor
setThresholdValues in interface MeasurableMonitortVals - The ThresholdValuespublic MeasuredResource getMeasuredResource()
MeasurableMonitor
getMeasuredResource in interface MeasurableMonitorMeasuredResource
for the MeasurableMonitorpublic void terminate()
MeasurableMonitor
terminate in interface MeasurableMonitor
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||