org.jboss.ejb3.metrics.deployer
Class BasicStatelessSessionInstanceMetrics

java.lang.Object
  extended by org.jboss.ejb3.metrics.deployer.BasicStatelessSessionInstanceMetrics
All Implemented Interfaces:
SessionInstanceMetrics

public class BasicStatelessSessionInstanceMetrics
extends java.lang.Object
implements SessionInstanceMetrics

BasicStatelessSessionInstanceMetrics Threadsafe implementation of a SLSB instance metrics collector. Additionally exposed as a management object.


Constructor Summary
BasicStatelessSessionInstanceMetrics(org.jboss.ejb3.stateless.StatelessContainer slsb)
          Constructor
 
Method Summary
 int getAvailableCount()
          Obtains the number of instances currently available for service for this EJB
 int getCreateCount()
          Obtains the number of instances created for this EJB
 int getCurrentSize()
          Obtains the current size of the underlying pool/cache of bean instances
 int getMaxSize()
          Obtains the size of the underlying instance pool/cache at it highest
 int getRemoveCount()
          Obtains the number of instances removed for this EJB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicStatelessSessionInstanceMetrics

public BasicStatelessSessionInstanceMetrics(org.jboss.ejb3.stateless.StatelessContainer slsb)
                                     throws java.lang.IllegalArgumentException
Constructor

Parameters:
slsb - The underlying container
Throws:
java.lang.IllegalArgumentException - If the underlying container is not supplied
Method Detail

getAvailableCount

public int getAvailableCount()
Description copied from interface: SessionInstanceMetrics
Obtains the number of instances currently available for service for this EJB

Specified by:
getAvailableCount in interface SessionInstanceMetrics
Returns:

getCreateCount

public int getCreateCount()
Description copied from interface: SessionInstanceMetrics
Obtains the number of instances created for this EJB

Specified by:
getCreateCount in interface SessionInstanceMetrics
Returns:

getCurrentSize

public int getCurrentSize()
Description copied from interface: SessionInstanceMetrics
Obtains the current size of the underlying pool/cache of bean instances

Specified by:
getCurrentSize in interface SessionInstanceMetrics
Returns:

getMaxSize

public int getMaxSize()
Description copied from interface: SessionInstanceMetrics
Obtains the size of the underlying instance pool/cache at it highest

Specified by:
getMaxSize in interface SessionInstanceMetrics
Returns:

getRemoveCount

public int getRemoveCount()
Description copied from interface: SessionInstanceMetrics
Obtains the number of instances removed for this EJB

Specified by:
getRemoveCount in interface SessionInstanceMetrics
Returns: