org.jini.rio.qos.measurable.cpu
Class CPU
java.lang.Object
org.jini.rio.watch.Watch
org.jini.rio.watch.ThresholdWatch
org.jini.rio.watch.PeriodicWatch
org.jini.rio.qos.measurable.MeasurableCapability
org.jini.rio.qos.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.
Method Summary |
void |
checkValue()
Abstract method to check the watch's value at the periodic interval |
double |
getUtilization()
Get the computed utilization for this CPU object |
static void |
main(String[] argv)
Test the CPU |
Methods inherited from class org.jini.rio.qos.measurable.MeasurableCapability |
addSecondaryThresholdManager, addWatchRecord, calculateResourceCost, getConfiguration, getMeasuredResource, getObservable, getSampleSize, getSLA, removeSecondaryThresholdManager, setResourceCostModel, setSampleSize, setSLA, setWatchDataSource |
Methods inherited from class org.jini.rio.watch.ThresholdWatch |
addThresholdListener, getBreachedCount, getClearedCount, getCurrentHighThreshold, getCurrentLowThreshold, getHighThreshold, getLowThreshold, getThresholdManager, getThresholdValues, removeThresholdListener, setCurrentHighThreshold, setCurrentLowThreshold, setThresholdValues |
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
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
main
public static void main(String[] argv)
- Test the CPU
- Parameters:
argv
- Command-line style arguments, ignored.
Copyright (c) 2005 Sun Microsystems, Inc.
Copyright (c) 2006 GigaSpaces Technologies, Inc.
All Rights Reserved.