org.jboss.ejb3.metrics.deployer
Class BasicStatelessSessionInstanceMetrics
java.lang.Object
org.jboss.ejb3.metrics.deployer.BasicStatelessSessionInstanceMetrics
- All Implemented Interfaces:
- org.jboss.ejb3.metrics.spi.SessionInstanceMetrics
public class BasicStatelessSessionInstanceMetrics
- extends java.lang.Object
- implements org.jboss.ejb3.metrics.spi.SessionInstanceMetrics
BasicStatelessSessionInstanceMetrics
Threadsafe implementation of a SLSB 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 |
BasicStatelessSessionInstanceMetrics
public BasicStatelessSessionInstanceMetrics(org.jboss.ejb3.stateless.StatelessContainer slsb)
throws java.lang.IllegalArgumentException
- Constructor
- Parameters:
slsb - The underlying container
- Throws:
java.lang.IllegalArgumentException - If the underlying container is not supplied
getAvailableCount
public int getAvailableCount()
- Specified by:
getAvailableCount in interface org.jboss.ejb3.metrics.spi.SessionInstanceMetrics
getCreateCount
public int getCreateCount()
- Specified by:
getCreateCount in interface org.jboss.ejb3.metrics.spi.SessionInstanceMetrics
getCurrentSize
public int getCurrentSize()
- Specified by:
getCurrentSize in interface org.jboss.ejb3.metrics.spi.SessionInstanceMetrics
getMaxSize
public int getMaxSize()
- Specified by:
getMaxSize in interface org.jboss.ejb3.metrics.spi.SessionInstanceMetrics
getRemoveCount
public int getRemoveCount()
- Specified by:
getRemoveCount in interface org.jboss.ejb3.metrics.spi.SessionInstanceMetrics