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

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
      extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.SessionBeanSampler
Direct Known Subclasses:
SFBSampler, SLBSampler

public abstract class SessionBeanSampler
extends Sampler

Sampler for retrieving data from stateless session beans.


Field Summary
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
context, logger
 
Constructor Summary
SessionBeanSampler(SamplerContext context)
           
 
Method Summary
protected abstract  String getDefaultOnPattern()
           
protected  SampleData newSampleData()
           
protected  SampleData poll(SampleData data)
          Implementation of inherited abstract method.
protected abstract  void pollSessionBean(ObjectName on, SessionBeanData data)
           
protected  void pollSessionBeans(XSampleData data)
          Polls stateless bean providers for data, will call SLBSampler#pollSLB(ObjectName, SLBData) for each object name.
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
getCmdId, getDomain, getJmxUrl, getMBeanServerConnection, getName, getOnPattern, getServer, isHasFailed, queryON, releaseMbeanServerConnection, sample, setHasFailed, setOnPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionBeanSampler

public SessionBeanSampler(SamplerContext context)
Method Detail

getDefaultOnPattern

protected abstract String getDefaultOnPattern()
Specified by:
getDefaultOnPattern 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.

newSampleData

protected SampleData newSampleData()
Specified by:
newSampleData in class Sampler
Returns:
New sample data.

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)

pollSessionBeans

protected void pollSessionBeans(XSampleData data)
Polls stateless bean providers for data, will call SLBSampler#pollSLB(ObjectName, SLBData) for each object name.

Parameters:
data - XSampleData to add polled information to.

pollSessionBean

protected abstract void pollSessionBean(ObjectName on,
                                        SessionBeanData data)


Copyright © 2012 OW2 Consortium. All Rights Reserved.