org.jboss.ejb3.metrics.deployer
Class BasicStatefulSessionInstanceMetrics

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

public class BasicStatefulSessionInstanceMetrics
extends java.lang.Object
implements StatefulSessionInstanceMetrics

BasicStatefulSessionInstanceMetrics Implementation of a SFSB instance metrics collector. Additionally exposed as a management object.


Constructor Summary
BasicStatefulSessionInstanceMetrics(org.jboss.ejb3.stateful.StatefulContainer sfsb)
          Constructor
 
Method Summary
 int getAvailableCount()
          Obtains the number of instances currently available for service for this EJB
 int getCacheSize()
          Obtains the current number of instances in the cache
 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 getPassivatedCount()
          Returns the number of instanes passivated
 int getRemoveCount()
          Obtains the number of instances removed for this EJB
 int getTotalSize()
          Returns the total size of the cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicStatefulSessionInstanceMetrics

public BasicStatefulSessionInstanceMetrics(org.jboss.ejb3.stateful.StatefulContainer sfsb)
                                    throws java.lang.IllegalArgumentException
Constructor

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

getCacheSize

public int getCacheSize()
Description copied from interface: StatefulSessionInstanceMetrics
Obtains the current number of instances in the cache

Specified by:
getCacheSize in interface StatefulSessionInstanceMetrics
Returns:

getTotalSize

public int getTotalSize()
Description copied from interface: StatefulSessionInstanceMetrics
Returns the total size of the cache

Specified by:
getTotalSize in interface StatefulSessionInstanceMetrics
Returns:

getPassivatedCount

public int getPassivatedCount()
Description copied from interface: StatefulSessionInstanceMetrics
Returns the number of instanes passivated

Specified by:
getPassivatedCount in interface StatefulSessionInstanceMetrics
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:

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:

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:

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:

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: