org.jboss.ejb3.metrics.deployer
Class BasicStatefulSessionInstanceMetrics
java.lang.Object
org.jboss.ejb3.metrics.deployer.BasicStatefulSessionInstanceMetrics
- All Implemented Interfaces:
- org.jboss.ejb3.metrics.spi.SessionInstanceMetrics, org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics
public class BasicStatefulSessionInstanceMetrics
- extends java.lang.Object
- implements org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics
BasicStatefulSessionInstanceMetrics
Threadsafe implementation of a SFSB instance
metrics collector. Additionally exposed as a
management object.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
getCacheSize
public int getCacheSize()
- Specified by:
getCacheSize in interface org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics
getTotalSize
public int getTotalSize()
- Specified by:
getTotalSize in interface org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics
getPassivatedCount
public int getPassivatedCount()
- Specified by:
getPassivatedCount in interface org.jboss.ejb3.metrics.spi.StatefulSessionInstanceMetrics
getCreateCount
public int getCreateCount()
- Specified by:
getCreateCount in interface org.jboss.ejb3.metrics.spi.SessionInstanceMetrics
getRemoveCount
public int getRemoveCount()
- Specified by:
getRemoveCount in interface org.jboss.ejb3.metrics.spi.SessionInstanceMetrics
getAvailableCount
public int getAvailableCount()
- Specified by:
getAvailableCount in interface org.jboss.ejb3.metrics.spi.SessionInstanceMetrics
getMaxSize
public int getMaxSize()
- Specified by:
getMaxSize in interface org.jboss.ejb3.metrics.spi.SessionInstanceMetrics
getCurrentSize
public int getCurrentSize()
- Specified by:
getCurrentSize in interface org.jboss.ejb3.metrics.spi.SessionInstanceMetrics