org.ow2.jasmine.monitoring.mbeancmd.sampling
Class CpuSunData
java.lang.Object
org.ow2.jasmine.monitoring.mbeancmd.sampling.SampleData
org.ow2.jasmine.monitoring.mbeancmd.sampling.CpuSunData
public class CpuSunData
- extends SampleData
Data retrieved from the Sun Java VM.
| Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.SampleData |
getAttribute, getAttributeAsDouble, getAttributeAsInt, getAttributeAsLong, getDomain, getJmxURL, getName, getObjectName, getPrintHeader, getSampleTime, getSeparator, getServer, isValid, printData, setAttribute, setObjectName, setSampleTime, setSeparator, setServerInfo, setValid |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CpuSunData
public CpuSunData()
compute
public void compute(SampleData needs_cast)
- Implementation of inherited abstract method.
- Specified by:
compute in class SampleData
- Parameters:
needs_cast - Previous measurement.- See Also:
SampleData.compute(SampleData)
getInnerPrintHeader
protected java.lang.String getInnerPrintHeader()
- Implementation of inherited abstract method.
- Specified by:
getInnerPrintHeader in class SampleData
- Returns:
- The inner (specialized) part of the header for this data type.
- See Also:
SampleData.getInnerPrintHeader()
getInnerPrintData
protected java.lang.String getInnerPrintData()
- Implementation of inherited abstract method.
- Specified by:
getInnerPrintData in class SampleData
- Returns:
- The inner (specialized) part of the data for this data type.
- See Also:
SampleData.getInnerPrintData()
getProcessCpuTime
public double getProcessCpuTime()
- Returns:
- Total time used by this process.
setProcessCpuTime
public void setProcessCpuTime(long processCpuTime)
- Parameters:
processCpuTime - Total time used by this process.
getAvailableProcessors
public double getAvailableProcessors()
- Returns:
- Number of available processors.
setAvailableProcessors
public void setAvailableProcessors(long availableProcessors)
- Parameters:
availableProcessors - Number of available processors.
getCurrentCpuTime
public double getCurrentCpuTime()
- Returns:
- Current CPU time.
setCurrentCpuTime
public void setCurrentCpuTime(long currentCpuTime)
- Parameters:
currentCpuTime - Current CPU time.
getCurrentCpuLoad
public double getCurrentCpuLoad()
- Returns:
- Current CPU load.
setCurrentCpuLoad
public void setCurrentCpuLoad(long currentCpuLoad)
- Parameters:
currentCpuLoad - Current CPU load.
getValueOfAttributes
public java.util.Map<java.lang.String,?> getValueOfAttributes()
- Overrides:
getValueOfAttributes in class SampleData
Copyright © 2009 OW2 Consortium. All Rights Reserved.