org.ow2.jonas.ejb2.internal.mbean
Class EJB

java.lang.Object
  extended by org.ow2.jonas.lib.management.javaee.ManagedObject
      extended by org.ow2.jonas.lib.management.javaee.J2EEManagedObject
          extended by org.ow2.jonas.ejb2.internal.mbean.EJB
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
          Bean Deployment Descriptor.
protected  JFactory ejbToManage
          The Bean to manage.
protected  String fileName
          Bean ejbjar filename.
 
Fields inherited from class org.ow2.jonas.lib.management.javaee.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Fields inherited from class org.ow2.jonas.lib.management.javaee.ManagedObject
logger
 
Constructor Summary
EJB(String objectName, JFactory ejbToManage, JmxService jmx)
          Constructs an EJB MBean object.
 
Method Summary
 Hashtable getAllDataSourceName()
          Construct Hashtable containing for each ResourceRef jndi name its corresponding the datasource name or empty String if no corresponding datasource was found.
 Hashtable getAllJdbcResourceAdapterName()
          Construct Hashtable containing for each ResourceRef jndi name its corresponding the ResourceAdapter MBean OBJECT_NAME.
 Set getAllJMSConnectionFactoryName()
           
 Set getAllJMSDestinationName()
           
 Hashtable getAllMailFactoryMName()
           
 Hashtable getAllMailFactorySName()
           
 Set getAllURLs()
           
 int getCacheSize()
           
 String getDisplayName()
           
 String getEjbClass()
           
 String getFileName()
           
 String getHomeClass()
           
 String getJndiName()
           
 String getLocalClass()
           
 String getLocalHomeClass()
           
 int getMaxCacheSize()
           
 int getMinPoolSize()
           
 String getName()
           
 int getPoolSize()
           
 String getRemoteClass()
           
 void reduceCacheSize()
          Reduce number of instances
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider, setEventProvider, setObjectName, setStateManageable, setStatisticsProvider
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.ManagedObject
sendNotification, sendReconfigNotification, sendSaveNotification, setModelMBean
 
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
Bean Deployment Descriptor.


fileName

protected String fileName
Bean ejbjar filename.

Constructor Detail

EJB

public EJB(String objectName,
           JFactory ejbToManage,
           JmxService jmx)
Constructs an EJB MBean object.

Parameters:
objectName - EJB ObjectName
ejbToManage - This bean's JFactory
Method Detail

getName

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

getFileName

public String getFileName()
Returns:
Ejb File Name

getAllJdbcResourceAdapterName

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

Returns:
Hashtable table

getAllDataSourceName

public 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 Set getAllJMSConnectionFactoryName()
Returns:
Set The Name set of the Connection Factories

getAllMailFactorySName

public 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 Hashtable getAllMailFactoryMName()
Returns:
Hashtable which maps the JNDI names provided by the DD to the MimePartDataSource Mail factory resources known by the Mail Service

getAllJMSDestinationName

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

getAllURLs

public Set getAllURLs()
Returns:
Set The URL resources 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 String getEjbClass()
Returns:
String the JFactory Class

getDisplayName

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

getJndiName

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

getHomeClass

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

getRemoteClass

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

getLocalHomeClass

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

getLocalClass

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


Copyright © 2010 OW2 Consortium. All Rights Reserved.