Rio Project 4.2 API Documentation



org.rioproject.system.measurable.memory.pool
Class MemoryPoolMXBeanMonitor

java.lang.Object
  extended by org.rioproject.system.measurable.memory.pool.MemoryPoolMXBeanMonitor
All Implemented Interfaces:
MeasurableMonitor<MemoryPoolUtilization>

public class MemoryPoolMXBeanMonitor
extends Object
implements MeasurableMonitor<MemoryPoolUtilization>

Monitoring for JMX memory pool.


Constructor Summary
MemoryPoolMXBeanMonitor()
           
 
Method Summary
 String getId()
           
 MemoryPoolUtilization getMeasuredResource()
          Get the MeasuredResource
protected  MemoryPoolMXBean getMemoryPoolMXBean()
           
 ThresholdValues getThresholdValues()
           
 void setID(String id)
          Set the identifier for the resource being measured
 void setThresholdValues(ThresholdValues thresholdValues)
          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

MemoryPoolMXBeanMonitor

public MemoryPoolMXBeanMonitor()
Method Detail

getMemoryPoolMXBean

protected MemoryPoolMXBean getMemoryPoolMXBean()

terminate

public void terminate()
Description copied from interface: MeasurableMonitor
Terminate any collection mechanisms

Specified by:
terminate in interface MeasurableMonitor<MemoryPoolUtilization>

setID

public void setID(String id)
Description copied from interface: MeasurableMonitor
Set the identifier for the resource being measured

Specified by:
setID in interface MeasurableMonitor<MemoryPoolUtilization>
Parameters:
id - The identifier

getId

public String getId()

getThresholdValues

public ThresholdValues getThresholdValues()

setThresholdValues

public void setThresholdValues(ThresholdValues thresholdValues)
Description copied from interface: MeasurableMonitor
Set the ThresholdValues for the resource being measured

Specified by:
setThresholdValues in interface MeasurableMonitor<MemoryPoolUtilization>
Parameters:
thresholdValues - The ThresholdValues

getMeasuredResource

public MemoryPoolUtilization getMeasuredResource()
Description copied from interface: MeasurableMonitor
Get the MeasuredResource

Specified by:
getMeasuredResource in interface MeasurableMonitor<MemoryPoolUtilization>
Returns:
The MeasuredResource for the MeasurableMonitor

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.