org.objectweb.jonas.container
Class JmxEntityFactory

java.lang.Object
  |
  +--org.objectweb.jonas.container.JmxBeanFactory
        |
        +--org.objectweb.jonas.container.JmxEntityFactory
All Implemented Interfaces:
JmxBeanFactoryMBean, JmxEntityFactoryMBean

public class JmxEntityFactory
extends JmxBeanFactory
implements JmxEntityFactoryMBean

MBean Class for Entity EJB Management MBean type: Standard MBean model: Delegate (JEntityFactory)


Fields inherited from class org.objectweb.jonas.container.JmxBeanFactory
desc, ejbToManage, fileName
 
Constructor Summary
JmxEntityFactory(JEntityFactory factoryToManage)
          Constructor
 
Method Summary
 java.lang.Integer getCacheSize()
          Cache Size
 java.lang.Integer[] getEntityCounters()
          Instance Counters
 java.lang.Integer getMaxCacheSize()
          max-cache-size
 java.lang.Integer getMinPoolSize()
          min-pool-size
 java.lang.Long getPassivationTimeOut()
          passivation time out
 java.lang.Integer getPoolSize()
          pool-size
 java.lang.Boolean getShared()
          shared
 void reduceCache()
          Reduce number of instances in memory
 void setPassivationTimeOut(java.lang.Long timeOut)
           
 void synchronize()
          Synchronize bean state for all its instances outside transactions
 
Methods inherited from class org.objectweb.jonas.container.JmxBeanFactory
getAllDataSourceName, getAllJMSConnectionFactoryName, getAllJMSDestinationName, getAllMailFactoryMName, getAllMailFactorySName, 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.JmxBeanFactoryMBean
getAllDataSourceName, getAllJMSConnectionFactoryName, getAllJMSDestinationName, getAllMailFactoryMName, getAllMailFactorySName, getCurrentInstancePoolSize, getDisplayName, getEJBClass, getEJBFileName, getEJBName, getHomeClass, getJndiName, getLocalClass, getLocalHomeClass, getRemoteClass
 

Constructor Detail

JmxEntityFactory

public JmxEntityFactory(JEntityFactory factoryToManage)
Constructor
Parameters:
JEntityFactory - factory to manage
Method Detail

getPassivationTimeOut

public java.lang.Long getPassivationTimeOut()
passivation time out
Specified by:
getPassivationTimeOut in interface JmxEntityFactoryMBean
Following copied from interface: org.objectweb.jonas.container.JmxEntityFactoryMBean
Returns:
the current passivation time out

setPassivationTimeOut

public void setPassivationTimeOut(java.lang.Long timeOut)
Specified by:
setPassivationTimeOut in interface JmxEntityFactoryMBean
Following copied from interface: org.objectweb.jonas.container.JmxEntityFactoryMBean
Parameters:
Long - passivation time out to set

getShared

public java.lang.Boolean getShared()
shared
Specified by:
getShared in interface JmxEntityFactoryMBean

getMinPoolSize

public java.lang.Integer getMinPoolSize()
min-pool-size
Specified by:
getMinPoolSize in interface JmxEntityFactoryMBean

getMaxCacheSize

public java.lang.Integer getMaxCacheSize()
max-cache-size
Specified by:
getMaxCacheSize in interface JmxEntityFactoryMBean

getPoolSize

public java.lang.Integer getPoolSize()
pool-size
Specified by:
getPoolSize in interface JmxEntityFactoryMBean

getCacheSize

public java.lang.Integer getCacheSize()
Cache Size
Specified by:
getCacheSize in interface JmxEntityFactoryMBean

getEntityCounters

public java.lang.Integer[] getEntityCounters()
Instance Counters
Specified by:
getEntityCounters in interface JmxEntityFactoryMBean

synchronize

public void synchronize()
Synchronize bean state for all its instances outside transactions
Specified by:
synchronize in interface JmxEntityFactoryMBean

reduceCache

public void reduceCache()
Reduce number of instances in memory
Specified by:
reduceCache in interface JmxEntityFactoryMBean