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

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
      extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.SLBSampler

public class SLBSampler
extends Sampler

Sampler for retrieving data from stateless session beans.


Field Summary
private static java.lang.String[] attIds
          Polled attribute identifiers.
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
oNames
 
Constructor Summary
SLBSampler(java.lang.String urlString)
          Implementation of inherited method.
 
Method Summary
 java.lang.String getDefaultOn()
          Implementation of inherited abstract method.
protected  SampleData newSampleData()
          Implementation of inherited abstract method.
protected  SampleData poll(SampleData data)
          Implementation of inherited abstract method.
private  void pollSLB(javax.management.ObjectName on, SLBData data)
          Polls one stateless bean provider for data.
private  void pollSLBs(XSampleData data)
          Polls stateless bean providers for data, will call pollSLB(ObjectName, SLBData) for each object name.
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
getDomain, getMBeanServerConnection, getName, getOn, getServer, 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
Polled attribute identifiers.

Constructor Detail

SLBSampler

public SLBSampler(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
Returns:
Default Object name filtering pattern for this sampler. If null, we'll consider that the Sampler doesn't have one default object name filter.
See Also:
Sampler.getDefaultOn()

newSampleData

protected SampleData newSampleData()
Implementation of inherited abstract method.

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

poll

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

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

pollSLBs

private void pollSLBs(XSampleData data)
Polls stateless bean providers for data, will call pollSLB(ObjectName, SLBData) for each object name.

Parameters:
data - XSampleData to add polled information to.

pollSLB

private void pollSLB(javax.management.ObjectName on,
                     SLBData data)
Polls one stateless bean provider for data.

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