org.objectweb.jonas.container
Class EntityBean
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
org.objectweb.jonas.container.EJB
org.objectweb.jonas.container.EntityBean
- All Implemented Interfaces:
- javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean
- public class EntityBean
- extends EJB
This class implements the EntityBean type specified in JSR77
- Author:
- Adriana Danes
Constructor Summary |
EntityBean(java.lang.String objectName,
JEntityFactory factoryToManage,
java.lang.String persistency)
|
Methods inherited from class org.objectweb.jonas.container.EJB |
getAllDataSourceName, getAllJMSConnectionFactoryName, getAllJMSDestinationName, getAllMailFactoryMName, getAllMailFactorySName, getAllURLs, getCurrentInstancePoolSize, getDisplayName, getEjbClass, getFileName, getHomeClass, getJndiName, getLocalClass, getLocalHomeClass, getName, getRemoteClass |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
handleNotification, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityBean
public EntityBean(java.lang.String objectName,
JEntityFactory factoryToManage,
java.lang.String persistency)
getPersistency
public java.lang.String getPersistency()
- get persistency type
getPassivationTimeOut
public long getPassivationTimeOut()
- get passivation time out
- Returns:
- passivation timeout in milliseconds
setPassivationTimeOut
public void setPassivationTimeOut(int timeOut)
- set passivation time out
- Parameters:
timeOut
- passivation timeout in seconds
getShared
public boolean getShared()
- Returns:
- true if bean is shared
getMinPoolSize
public int getMinPoolSize()
- Returns:
- min-pool-size value
getMaxCacheSize
public int getMaxCacheSize()
- Returns:
- max-cache-size value
getPoolSize
public int getPoolSize()
- Returns:
- pool-size value
getLockPolicy
public java.lang.String getLockPolicy()
- Returns:
- EJB Container lock policy
getPrefetch
public boolean getPrefetch()
getCacheSize
public int getCacheSize()
- Returns:
- Cache Size value
getEntityCounters
public java.lang.Integer[] getEntityCounters()
- Instance Counters (inTx, outTx, idle, passive, removed)
- Returns:
- table of int values for Entity counters
synchronize
public void synchronize()
- Synchronize bean state for all its instances outside transactions
reduceCache
public void reduceCache()
- Reduce number of instances in memory