Rio Project 4.2 API Documentation
org.rioproject.system.measurable.memory.pool
Class MemoryPool
java.lang.Object
org.rioproject.watch.Watch
org.rioproject.watch.ThresholdWatch
org.rioproject.watch.PeriodicWatch
org.rioproject.system.measurable.MeasurableCapability
org.rioproject.system.measurable.memory.pool.MemoryPool
- All Implemented Interfaces:
- ResourceCostProducer, MeasurableCapabilityMBean, PeriodicWatchMBean, ThresholdWatchMBean, WatchMBean
public class MemoryPool
- extends MeasurableCapability
The MemoryPool is used to monitor a JMX memory pool.
| Methods inherited from class org.rioproject.system.measurable.MeasurableCapability |
addSecondaryThresholdManager, addWatchRecord, calculateResourceCost, getConfiguration, getMeasuredResource, getObservable, getSampleSize, getSLA, getThresholdManagers, isEnabled, removeSecondaryThresholdManager, setEnabled, setLastMeasuredResource, setMeasurableMonitor, setResourceCostModel, setSampleSize, setSLA, setWatchDataSource |
| Methods inherited from class org.rioproject.watch.ThresholdWatch |
addThresholdListener, getBreachedCount, getClearedCount, getCurrentHighThreshold, getCurrentLowThreshold, getHighThreshold, getLowThreshold, getThresholdManager, getThresholdValues, removeThresholdListener, setCurrentHighThreshold, setCurrentLowThreshold, setThresholdValues |
| Methods inherited from class org.rioproject.watch.Watch |
clear, equals, getCalculables, getId, getLastCalculableValue, getView, getWatchDataSource, hashCode, main, setView, toString |
MemoryPool
public MemoryPool(String id,
Configuration config,
ThresholdValues thresholdValues)
- Construct a MemoryPool object
- Parameters:
id - Identifier to useconfig - Configuration objectthresholdValues - ThresholdValues to use
getUtilization
public double getUtilization()
- Description copied from interface:
MeasurableCapabilityMBean
- Provide a method to return the utilization associated with this
MeasurableCapability
start
public void start()
- Override PeriodicWatch.start() to get an initial reading prior to
scheduling
- Specified by:
start in interface PeriodicWatchMBean- Overrides:
start in class PeriodicWatch
- See Also:
PeriodicWatchMBean.start()
checkValue
public void checkValue()
- Description copied from interface:
PeriodicWatchMBean
- Abstract method to check the watch's value at the periodic interval
createMeasurableMonitor
protected MeasurableMonitor<MemoryPoolUtilization> createMeasurableMonitor(String id)
Copyright © 2006-2011 Rio Project. All Rights Reserved.