org.objectweb.jonas.container
Class EntityBean

java.lang.Object
  extended byjavax.management.NotificationBroadcasterSupport
      extended byorg.objectweb.jonas.management.ReconfigDispatcher
          extended byorg.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
              extended byorg.objectweb.jonas.container.EJB
                  extended byorg.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

Field Summary
 
Fields inherited from class org.objectweb.jonas.container.EJB
desc, ejbToManage, fileName
 
Fields inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
EntityBean(java.lang.String objectName, JEntityFactory factoryToManage, java.lang.String persistency)
           
 
Method Summary
 int getCacheSize()
           
 java.lang.Integer[] getEntityCounters()
          Instance Counters (inTx, outTx, idle, passive, removed)
 java.lang.String getLockPolicy()
           
 int getMaxCacheSize()
           
 int getMinPoolSize()
           
 long getPassivationTimeOut()
          get passivation time out
 java.lang.String getPersistency()
          get persistency type
 int getPoolSize()
           
 boolean getPrefetch()
           
 boolean getShared()
           
 void reduceCache()
          Reduce number of instances in memory
 void setPassivationTimeOut(int timeOut)
          set passivation time out
 void synchronize()
          Synchronize bean state for all its instances outside transactions
 
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 org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider
 
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification
 
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
 

Constructor Detail

EntityBean

public EntityBean(java.lang.String objectName,
                  JEntityFactory factoryToManage,
                  java.lang.String persistency)
Method Detail

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