org.jboss.ejb3.metrics.deployer
Class BasicStatefulSessionMetrics

java.lang.Object
  extended by org.jboss.ejb3.metrics.deployer.ManagedSessionMetricsWrapperBase
      extended by org.jboss.ejb3.metrics.deployer.BasicStatefulSessionMetrics

public class BasicStatefulSessionMetrics
extends ManagedSessionMetricsWrapperBase

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


Constructor Summary
BasicStatefulSessionMetrics(org.jboss.ejb3.statistics.InvocationStatistics invocationStats, org.jboss.ejb3.stateful.StatefulContainer sfsb)
          Constructor
 
Method Summary
 int getAvailableCount()
          The number of instances available for service
 int getCacheSize()
           
 int getCreateCount()
          The number of instances created
 int getCurrentSize()
          The current size of the backing pool/cache
 int getMaxSize()
          The maximum size of the backing pool/cache
 int getPassivatedCount()
           
 int getRemoveCount()
          The number of instances removed
 int getTotalSize()
           
 
Methods inherited from class org.jboss.ejb3.metrics.deployer.ManagedSessionMetricsWrapperBase
getInvocationStats, getInvocationStatsLastResetTime, getName, resetInvocationStats
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicStatefulSessionMetrics

public BasicStatefulSessionMetrics(org.jboss.ejb3.statistics.InvocationStatistics invocationStats,
                                   org.jboss.ejb3.stateful.StatefulContainer sfsb)
                            throws java.lang.IllegalArgumentException
Constructor

Parameters:
invocationStats - Invocation stats delegate
slsb - The underlying container
Throws:
java.lang.IllegalArgumentException - If either argument is not supplied
Method Detail

getCacheSize

public int getCacheSize()

getTotalSize

public int getTotalSize()

getPassivatedCount

public int getPassivatedCount()

getCreateCount

public int getCreateCount()
Description copied from class: ManagedSessionMetricsWrapperBase
The number of instances created

Returns:

getRemoveCount

public int getRemoveCount()
Description copied from class: ManagedSessionMetricsWrapperBase
The number of instances removed

Returns:

getAvailableCount

public int getAvailableCount()
Description copied from class: ManagedSessionMetricsWrapperBase
The number of instances available for service


getMaxSize

public int getMaxSize()
Description copied from class: ManagedSessionMetricsWrapperBase
The maximum size of the backing pool/cache

Returns:

getCurrentSize

public int getCurrentSize()
Description copied from class: ManagedSessionMetricsWrapperBase
The current size of the backing pool/cache

Returns: