|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.measurable.memory.ProcessMemoryMonitor
public class ProcessMemoryMonitor
The ProcessMemoryMonitor object provides feedback information to the
Memory object, providing memory usage information for a process
obtained using JMX and SIGAR. SIGAR is used to obtain the process shared,
virtual and real memory size.
JMX is used to obtain detailed information on heap and non-heap usage. If SIGAR is not available, only JMX 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 | |
|---|---|
ProcessMemoryMonitor()
|
|
ProcessMemoryMonitor(int pid)
|
|
| Method Summary | |
|---|---|
MeasuredResource |
getLastMeasuredResource()
|
MeasuredResource |
getMeasuredResource()
Get the MeasuredResource |
MemoryMXBean |
getMXBean()
|
void |
setID(String id)
Set the identifier for the resource being measured |
void |
setMXBean(MemoryMXBean mxBean)
Set the platform MBean to monitor |
void |
setPID(long pid)
|
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 ProcessMemoryMonitor()
public ProcessMemoryMonitor(int pid)
| Method Detail |
|---|
public void setPID(long pid)
public void terminate()
MeasurableMonitor
terminate in interface MeasurableMonitorpublic void setID(String id)
MeasurableMonitor
setID in interface MeasurableMonitorid - The identifierpublic void setThresholdValues(ThresholdValues tVals)
MeasurableMonitor
setThresholdValues in interface MeasurableMonitortVals - The ThresholdValuespublic MeasuredResource getLastMeasuredResource()
public MeasuredResource getMeasuredResource()
MeasurableMonitor
getMeasuredResource in interface MeasurableMonitorMeasuredResource
for the MeasurableMonitorpublic void setMXBean(MemoryMXBean mxBean)
MXBeanMonitor
setMXBean in interface MXBeanMonitor<MemoryMXBean>mxBean - The platform MBeanpublic MemoryMXBean getMXBean()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||