org.objectweb.jonas.container
Class EJB

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
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean
Direct Known Subclasses:
EntityBean, MessageDrivenBean, SessionBean

public class EJB
extends J2EEManagedObject

This class implements the EJB type specified in JSR77

Author:
Adriana Danes

Field Summary
protected  BeanDesc desc
           
protected  JFactory ejbToManage
          The Bean to manage
protected  java.lang.String 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
EJB(java.lang.String objectName, JFactory ejbToManage)
           
 
Method Summary
 java.util.Hashtable getAllDataSourceName()
          Construct Hashtable containing for each ResourceRef jndi name its corresponding the datasource name or empty String if no corresponding datasource was found.
 java.util.Hashtable getAllJdbcResourceAdapterName()
          Construct Hashtable containing for each ResourceRef jndi name its corresponding the ResourceAdapter MBean OBJECT_NAME.
 java.util.Set getAllJMSConnectionFactoryName()
           
 java.util.Set getAllJMSDestinationName()
           
 java.util.Hashtable getAllMailFactoryMName()
           
 java.util.Hashtable getAllMailFactorySName()
           
 java.util.Set getAllURLs()
           
 int getCacheSize()
           
 java.lang.String getDisplayName()
           
 java.lang.String getEjbClass()
           
 java.lang.String getFileName()
           
 java.lang.String getHomeClass()
           
 java.lang.String getJndiName()
           
 java.lang.String getLocalClass()
           
 java.lang.String getLocalHomeClass()
           
 int getMaxCacheSize()
           
 int getMinPoolSize()
           
 java.lang.String getName()
           
 int getPoolSize()
           
 java.lang.String getRemoteClass()
           
 void reduceCacheSize()
          Reduce number of instances
 
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
 

Field Detail

ejbToManage

protected JFactory ejbToManage
The Bean to manage


desc

protected BeanDesc desc

fileName

protected java.lang.String fileName
Constructor Detail

EJB

public EJB(java.lang.String objectName,
           JFactory ejbToManage)
Method Detail

getName

public java.lang.String getName()
Returns:
String The Name of this JFactory

getFileName

public java.lang.String getFileName()
Returns:
Ejb File Name

getAllJdbcResourceAdapterName

public java.util.Hashtable getAllJdbcResourceAdapterName()
Construct Hashtable containing for each ResourceRef jndi name its corresponding the ResourceAdapter MBean OBJECT_NAME.

Returns:
Hashtable table

getAllDataSourceName

public java.util.Hashtable getAllDataSourceName()
Construct Hashtable containing for each ResourceRef jndi name its corresponding the datasource name or empty String if no corresponding datasource was found.

Returns:
Hashtable table

getAllJMSConnectionFactoryName

public java.util.Set getAllJMSConnectionFactoryName()
Returns:
Set The Name set of the Connection Factories

getAllMailFactorySName

public java.util.Hashtable getAllMailFactorySName()
Returns:
Hashtable which maps the JNDI names provided by the DD to the Session Mail factyory resources known by the Mail Service

getAllMailFactoryMName

public java.util.Hashtable getAllMailFactoryMName()
Returns:
Hashtable which maps the JNDI names provided by the DD to the MimePartDataSource Mail factyory resources known by the Mail Service

getAllJMSDestinationName

public java.util.Set getAllJMSDestinationName()
Returns:
Set The Name set of the JMS Destinations

getAllURLs

public java.util.Set getAllURLs()
Returns:
Set The URL ressources used by the bean

getPoolSize

public int getPoolSize()
Returns:
The current instance pool size

getMinPoolSize

public int getMinPoolSize()
Returns:
min-pool-size value

getMaxCacheSize

public int getMaxCacheSize()
Returns:
max-cache-size value

getCacheSize

public int getCacheSize()
Returns:
nb of instances (current cache size)

reduceCacheSize

public void reduceCacheSize()
Reduce number of instances


getEjbClass

public java.lang.String getEjbClass()
Returns:
String the JFactory Class

getDisplayName

public java.lang.String getDisplayName()
Returns:
String the displayName of the bean, or bean name if not defined.

getJndiName

public java.lang.String getJndiName()
Returns:
String the JNDI Name of the bean.

getHomeClass

public java.lang.String getHomeClass()
Returns:
String the HomeClass of the bean.

getRemoteClass

public java.lang.String getRemoteClass()
Returns:
String the RemoteClass of the bean.

getLocalHomeClass

public java.lang.String getLocalHomeClass()
Returns:
String the LocalHomeClass of the bean.

getLocalClass

public java.lang.String getLocalClass()
Returns:
String the LocalClass of the bean.