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

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler<CpuSunData>
      extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.CpuSunSampler

public class CpuSunSampler
extends Sampler<CpuSunData>

Data sampler for the Sun Java VM.


Field Summary
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
oNames
 
Constructor Summary
CpuSunSampler(java.lang.String urlString)
          Implementation of inherited method.
 
Method Summary
 java.lang.String getDefaultOn()
          Implementation of inherited abstract method.
protected  CpuSunData newSampleData()
          Implementation of inherited abstract method.
protected  CpuSunData poll(CpuSunData data)
          Implementation of inherited abstract method.
private  void pollCpuSun(CpuSunData data)
          Polls Sun Java VM CPU data.
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
getMBeanServerConnection, getOn, getServerDomain, getServerName, init, process, queryON, sample, setOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CpuSunSampler

public CpuSunSampler(java.lang.String urlString)
Implementation of inherited method.

See Also:
Sampler.Sampler(String)
Method Detail

getDefaultOn

public java.lang.String getDefaultOn()
Implementation of inherited abstract method.

Specified by:
getDefaultOn in class Sampler<CpuSunData>
See Also:
Sampler.getDefaultOn()

newSampleData

protected CpuSunData newSampleData()
Implementation of inherited abstract method.

Specified by:
newSampleData in class Sampler<CpuSunData>
Returns:
New sample data.
See Also:
Sampler.newSampleData()

poll

protected CpuSunData poll(CpuSunData data)
Implementation of inherited abstract method.

Specified by:
poll in class Sampler<CpuSunData>
Parameters:
data - Previous sample.
Returns:
Resulting data.
See Also:
Sampler.poll(SampleData), pollCpuSun(CpuSunData)

pollCpuSun

private void pollCpuSun(CpuSunData data)
Polls Sun Java VM CPU data.

Parameters:
data - ServerData to add polled information to.