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

java.lang.Object
  extended byorg.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
      extended byorg.ow2.jasmine.monitoring.mbeancmd.sampling.JoramQSampler

public class JoramQSampler
extends Sampler

Sampler for JORAM Queues.


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
JoramQSampler(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 pollJoramQueue(javax.management.ObjectName on, JoramQData data)
          Polls one JCA Connection Factory provider for data.
private  void pollJoramQueues(XSampleData data)
          Polls JCA Connection Factory providers for data, will call pollJoramQueue(ObjectName, JoramQData) 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
List of polled attributes. Note that 'Statistic' is a Hastable which is expected to hold the following entries: - creationDate - nbMsgsReceiveSinceCreation - nbMsgsSendToDMQSinceCreation - nbMsgsDeliverSinceCreation

Constructor Detail

JoramQSampler

public JoramQSampler(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), EntitySampler.pollEntities(XSampleData)

pollJoramQueues

private void pollJoramQueues(XSampleData data)
Polls JCA Connection Factory providers for data, will call pollJoramQueue(ObjectName, JoramQData) for each object name.

Parameters:
data - ServerData to add polled information to.

pollJoramQueue

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

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