org.ow2.jasmine.monitoring.mbeancmd.sampling
Class CpuSunData

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.SampleData
      extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.CpuSunData

public class CpuSunData
extends SampleData

Data retrieved from the Sun Java VM.


Field Summary
private  long availableProcessors
          Number of available processors.
private  double currentCpuLoad
          Current CPU load.
private  long currentCpuTime
          Current CPU time.
private static java.lang.String header
          Default output header.
private  long processCpuTime
          Total time used by this process.
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.SampleData
decimalFormat
 
Constructor Summary
CpuSunData()
           
 
Method Summary
 void compute(SampleData needs_cast)
          Implementation of inherited abstract method.
 double getAvailableProcessors()
           
 double getCurrentCpuLoad()
           
 double getCurrentCpuTime()
           
protected  java.lang.String getInnerPrintData()
          Implementation of inherited abstract method.
protected  java.lang.String getInnerPrintHeader()
          Implementation of inherited abstract method.
 double getProcessCpuTime()
           
 void setAvailableProcessors(long availableProcessors)
           
 void setCurrentCpuLoad(long currentCpuLoad)
           
 void setCurrentCpuTime(long currentCpuTime)
           
 void setProcessCpuTime(long processCpuTime)
           
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.SampleData
getAttribute, getAttributeAsDouble, getAttributeAsInt, getAttributeAsLong, getDomain, getName, 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
 

Field Detail

processCpuTime

private long processCpuTime
Total time used by this process.


availableProcessors

private long availableProcessors
Number of available processors.


currentCpuTime

private long currentCpuTime
Current CPU time.


currentCpuLoad

private double currentCpuLoad
Current CPU load.


header

private static final java.lang.String header
Default output header.

See Also:
Constant Field Values
Constructor Detail

CpuSunData

public CpuSunData()
Method Detail

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.