org.jboss.ejb3.metrics.deployer
Class BasicStatelessSessionMetrics

java.lang.Object
  extended by org.jboss.ejb3.metrics.deployer.BasicStatelessSessionMetrics

public class BasicStatelessSessionMetrics
extends java.lang.Object

BasicStatelessSessionMetrics Implementation of a SLSB metrics collector. Additionally exposed as a management object.


Constructor Summary
BasicStatelessSessionMetrics(org.jboss.ejb3.statistics.InvocationStatistics delegate, org.jboss.ejb3.stateless.StatelessContainer slsb)
          Constructor
 
Method Summary
 int getAvailableCount()
          The number of instances available for service
 int getCreateCount()
          The number of instances created
 int getCurrentSize()
          The current size of the backing pool/cache
 java.util.Map getInvocationStats()
           
 long getInvocationStatsLastResetTime()
          Exposes the time, represented in milliseconds since the epoch, that the stats were last reset
 int getMaxSize()
          The maximum size of the backing pool/cache
 java.lang.String getName()
          Returns the EJB Name
 int getRemoveCount()
          The number of instances removed
 void resetInvocationStats()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicStatelessSessionMetrics

public BasicStatelessSessionMetrics(org.jboss.ejb3.statistics.InvocationStatistics delegate,
                                    org.jboss.ejb3.stateless.StatelessContainer slsb)
                             throws java.lang.IllegalArgumentException
Constructor

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

getAvailableCount

public int getAvailableCount()
The number of instances available for service


getCreateCount

public int getCreateCount()
The number of instances created

Returns:

getCurrentSize

public int getCurrentSize()
The current size of the backing pool/cache

Returns:

getMaxSize

public int getMaxSize()
The maximum size of the backing pool/cache

Returns:

getRemoveCount

public int getRemoveCount()
The number of instances removed

Returns:

getInvocationStats

public java.util.Map getInvocationStats()
Returns:
See Also:
InvocationStatistics.getStats()

resetInvocationStats

public void resetInvocationStats()
See Also:
InvocationStatistics.resetStats()

getInvocationStatsLastResetTime

public long getInvocationStatsLastResetTime()
Exposes the time, represented in milliseconds since the epoch, that the stats were last reset

Returns:

getName

public java.lang.String getName()
Returns the EJB Name

Returns: