org.objectweb.jonas.container
Class EntityBean

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

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()
           
 int getCurrentWaiters()
           
 int getDeadlockTimeOut()
          get deadlock time out
 java.lang.Integer[] getEntityCounters()
          Instance Counters (inTx, outTx, idle, passive, removed)
 boolean getHardLimit()
           
 int getInactivityTimeOut()
          get inactivity time out
 java.lang.String getLockPolicy()
           
 int getMaxCacheSize()
           
 int getMinPoolSize()
           
 int getPassivationTimeOut()
          get passivation time out
 java.lang.String getPersistency()
          get persistency type
 int getPoolSize()
           
 boolean getPrefetch()
           
 int getReadTimeOut()
          get read time out
 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, getAllJdbcResourceAdapterName, getAllJMSConnectionFactoryName, getAllJMSDestinationName, getAllMailFactoryMName, getAllMailFactorySName, getAllURLs, getDisplayName, getEjbClass, getFileName, getHomeClass, getJndiName, getLocalClass, getLocalHomeClass, getName, getRemoteClass, reduceCacheSize
 
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 int getPassivationTimeOut()
get passivation time out

Returns:
passivation timeout in seconds

setPassivationTimeOut

public void setPassivationTimeOut(int timeOut)
set passivation time out

Parameters:
timeOut - passivation timeout in seconds

getInactivityTimeOut

public int getInactivityTimeOut()
get inactivity time out

Returns:
inactivity timeout in seconds

getDeadlockTimeOut

public int getDeadlockTimeOut()
get deadlock time out

Returns:
deadlock timeout in seconds

getReadTimeOut

public int getReadTimeOut()
get read time out

Returns:
read timeout in seconds

getShared

public boolean getShared()
Returns:
true if bean is shared

getHardLimit

public boolean getHardLimit()
Returns:
true if bean has hard limit

getMinPoolSize

public int getMinPoolSize()
Overrides:
getMinPoolSize in class EJB
Returns:
min-pool-size value

getMaxCacheSize

public int getMaxCacheSize()
Overrides:
getMaxCacheSize in class EJB
Returns:
max-cache-size value

getPoolSize

public int getPoolSize()
Overrides:
getPoolSize in class EJB
Returns:
pool-size value

getCurrentWaiters

public int getCurrentWaiters()
Returns:
current number of waiters for a bean instance

getLockPolicy

public java.lang.String getLockPolicy()
Returns:
EJB Container lock policy

getPrefetch

public boolean getPrefetch()

getCacheSize

public int getCacheSize()
Overrides:
getCacheSize in class EJB
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