org.jboss.ejb3.metrics.spi
Interface SessionInstanceMetrics

All Known Subinterfaces:
StatefulSessionInstanceMetrics
All Known Implementing Classes:
BasicStatefulSessionInstanceMetrics, BasicStatelessSessionInstanceMetrics

public interface SessionInstanceMetrics

SessionInstanceMetrics Represents backing instance metrics of any type of EJB 3.x Session Bean, typically targeting the underlying instance pool or cache


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
 

Method Detail

getCurrentSize

int getCurrentSize()
Obtains the current size of the underlying pool/cache of bean instances

Returns:

getCreateCount

int getCreateCount()
Obtains the number of instances created for this EJB

Returns:

getRemoveCount

int getRemoveCount()
Obtains the number of instances removed for this EJB

Returns:

getAvailableCount

int getAvailableCount()
Obtains the number of instances currently available for service for this EJB

Returns:

getMaxSize

int getMaxSize()
Obtains the size of the underlying instance pool/cache at it highest

Returns: