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

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

public class EntitySampler
extends Sampler<XSampleData>

Sampler for entity beans.


Field Summary
private static java.lang.String[] attIds
          List of polled attributes : - PoolSize : Current nb of free instances
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.Sampler
oNames
 
Constructor Summary
EntitySampler(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 pollEntities(XSampleData data)
          Polls entity providers for data, will call pollEntity(ObjectName, EntityData) for each object name.
private  void pollEntity(javax.management.ObjectName on, EntityData data)
          Polls one entity provider for data.
 
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 : - PoolSize : Current nb of free instances. - CacheSize : Total nb of instances in memory. - Entity Counters : 0: Used in TX : Current nb of instances used inside transactions. 1: Used outside TX : Current nb of instances used outside transaction. 2: Unused but ready : Current nb of unused, ready instances. 3: Marked removed : Current nb of instances marked removed. 4: PK number : Total nb of PK in memory. 5: Passivated : Current nb of passivated instances.

Constructor Detail

EntitySampler

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

pollEntities

private void pollEntities(XSampleData data)
Polls entity providers for data, will call pollEntity(ObjectName, EntityData) for each object name.

Parameters:
data - XSampleData to add polled information to.

pollEntity

private void pollEntity(javax.management.ObjectName on,
                        EntityData data)
Polls one entity provider for data.

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