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

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler<TxData>
      extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.TxSampler

public class TxSampler
extends Sampler<TxData>

Transaction statistics sampler.


Field Summary
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
oNames
 
Constructor Summary
TxSampler(java.lang.String urlString)
          Implementation of inherited method.
 
Method Summary
 java.lang.String getDefaultOn()
          Implementation of inherited abstract method.
protected  TxData newSampleData()
          Implementation of inherited abstract method.
protected  TxData poll(TxData data)
          Implementation of inherited abstract method.
private  void pollJTM(TxData data)
          Polls the transaction manager.
 
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

TxSampler

public TxSampler(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<TxData>
See Also:
Sampler.getDefaultOn()

newSampleData

protected TxData newSampleData()
Implementation of inherited abstract method.

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

poll

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

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

pollJTM

private void pollJTM(TxData data)
Polls the transaction manager.

Parameters:
data - TxData to add polled information to.