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

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler<XSampleData>
      extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.JCACFSampler

public class JCACFSampler
extends Sampler<XSampleData>

Sampler for JCA Connection Factories.


Field Summary
private static java.lang.String[] attIds
          List of polled attributes.
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
oNames
 
Constructor Summary
JCACFSampler(java.lang.String urlString)
          Implementation of inherited method.
 
Method Summary
 java.lang.String getDefaultOn()
          Implementation of inherited abstract method.
protected  XSampleData newSampleData()
          Implementation of inherited abstract method.
protected  XSampleData poll(XSampleData data)
          Implementation of inherited abstract method.
private  void pollJCACF(javax.management.ObjectName on, JCACFData data)
          Polls one JCA Connection Factory provider for data.
private  void pollJCACFs(XSampleData data)
          Polls JCA Connection Factory providers for data, will call pollJCACF(ObjectName, JCACFData) for each object name.
 
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
 

Field Detail

attIds

private static final java.lang.String[] attIds
List of polled attributes.

Constructor Detail

JCACFSampler

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

newSampleData

protected XSampleData newSampleData()
Implementation of inherited abstract method.

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

poll

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

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

pollJCACFs

private void pollJCACFs(XSampleData data)
Polls JCA Connection Factory providers for data, will call pollJCACF(ObjectName, JCACFData) for each object name.

Parameters:
data - ServerData to add polled information to.

pollJCACF

private void pollJCACF(javax.management.ObjectName on,
                       JCACFData data)
Polls one JCA Connection Factory provider for data.

Parameters:
on - Name of the provider.
data - ServerData to add polled information to.