Rio Project 4.2 API Documentation
org.rioproject.system.measurable.cpu
Class CPU
java.lang.Object
org.rioproject.watch.Watch
org.rioproject.watch.ThresholdWatch
org.rioproject.watch.PeriodicWatch
org.rioproject.system.measurable.MeasurableCapability
org.rioproject.system.measurable.cpu.CPU
- All Implemented Interfaces:
- ResourceCostProducer, MeasurableCapabilityMBean, PeriodicWatchMBean, ThresholdWatchMBean, WatchMBean
public class CPU
- extends MeasurableCapability
The CPU object is a MeasurableCapability which
refers to the platform's capability describing CPU utilization, capacity, and
load.
- Author:
- Dennis Reedy
| 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 |
VIEW
public static final String VIEW
- See Also:
- Constant Field Values
CPU
public CPU(Configuration config)
- Construct a new CPU object
- Parameters:
config - Configuration object
CPU
public CPU(Configuration config,
String id,
boolean monitorJVM)
- Construct a new CPU object
- Parameters:
config - Configuration objectid - The identifier for the CPU watchmonitorJVM - If true, monitor the JVM's CPU utlization.
If false, monitor the machine's CPU utilization
getUtilization
public double getUtilization()
- Get the computed utilization for this
CPU object
- Returns:
- Utilization computed for this component
checkValue
public void checkValue()
- Description copied from interface:
PeriodicWatchMBean
- Abstract method to check the watch's value at the periodic interval
getMeasurableMonitor
public MeasurableMonitor getMeasurableMonitor()
Copyright © 2006-2011 Rio Project. All Rights Reserved.