org.objectweb.jonas.container
Class JmxSblFactory

java.lang.Object
  extended byorg.objectweb.jonas.container.JmxBeanFactory
      extended byorg.objectweb.jonas.container.JmxSessionFactory
          extended byorg.objectweb.jonas.container.JmxSblFactory
All Implemented Interfaces:
JmxBeanFactoryMBean, JmxSblFactoryMBean, JmxSessionFactoryMBean

public class JmxSblFactory
extends JmxSessionFactory
implements JmxSblFactoryMBean

MBean Class for Stateless Session EJB Management MBean type: Standard MBean model: Delegate (JSessionFactory)


Field Summary
 
Fields inherited from class org.objectweb.jonas.container.JmxBeanFactory
desc, ejbToManage, fileName
 
Constructor Summary
JmxSblFactory(JStatelessFactory factoryToManage)
          Constructor
 
Method Summary
 java.lang.Integer getMaxPoolSize()
          MBean method for bean instances pool management.
 java.lang.Integer getMinPoolSize()
          MBean method for bean instances pool management.
 java.lang.Integer getNbInstances()
          MBean method for bean instances pool management.
 void reducePoolToMinSize()
          MBean method for bean instances pool management.
 
Methods inherited from class org.objectweb.jonas.container.JmxSessionFactory
getSessionTimeOut, setSessionTimeOut
 
Methods inherited from class org.objectweb.jonas.container.JmxBeanFactory
getAllDataSourceName, getAllJMSConnectionFactoryName, getAllJMSDestinationName, getAllMailFactoryMName, getAllMailFactorySName, getAllURLs, getCurrentInstancePoolSize, getDisplayName, getEJBClass, getEJBFileName, getEJBName, getHomeClass, getJndiName, getLocalClass, getLocalHomeClass, getRemoteClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas.container.JmxSessionFactoryMBean
getSessionTimeOut, setSessionTimeOut
 
Methods inherited from interface org.objectweb.jonas.container.JmxBeanFactoryMBean
getAllDataSourceName, getAllJMSConnectionFactoryName, getAllJMSDestinationName, getAllMailFactoryMName, getAllMailFactorySName, getAllURLs, getCurrentInstancePoolSize, getDisplayName, getEJBClass, getEJBFileName, getEJBName, getHomeClass, getJndiName, getLocalClass, getLocalHomeClass, getRemoteClass
 

Constructor Detail

JmxSblFactory

public JmxSblFactory(JStatelessFactory factoryToManage)
Constructor

Method Detail

getMinPoolSize

public java.lang.Integer getMinPoolSize()
MBean method for bean instances pool management.

Specified by:
getMinPoolSize in interface JmxSblFactoryMBean
Returns:
the minimum size of the bean instances pool.

getMaxPoolSize

public java.lang.Integer getMaxPoolSize()
MBean method for bean instances pool management.

Specified by:
getMaxPoolSize in interface JmxSblFactoryMBean
Returns:
the maximum size of the bean instances pool

getNbInstances

public java.lang.Integer getNbInstances()
MBean method for bean instances pool management.

Specified by:
getNbInstances in interface JmxSblFactoryMBean
Returns:
the current number of created bean instances

reducePoolToMinSize

public void reducePoolToMinSize()
MBean method for bean instances pool management. Allows reducing the number of instances.

Specified by:
reducePoolToMinSize in interface JmxSblFactoryMBean