站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 management API Documentation 英文版文档

EJBModule (JBoss/Management API) - JBoss 4.0.1 sp1 management API Documentation 英文版文档


org.jboss.management.j2ee
Class EJBModule

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.management.j2ee.J2EEManagedObject
              extended byorg.jboss.management.j2ee.J2EEDeployedObject
                  extended byorg.jboss.management.j2ee.J2EEModule
                      extended byorg.jboss.management.j2ee.EJBModule
All Implemented Interfaces:
EJBModuleMBean, EventProvider, J2EEDeployedObjectMBean, J2EEManagedObjectMBean, J2EEModuleMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, Serializable, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class EJBModule
extends J2EEModule
implements EJBModuleMBean

Root class of the JBoss JSR-77 implementation of EJBModule.

Version:
$Revision: 1.25 $
Author:
Andreas Schaefer., Scott.Stark@jboss.org, thomas.diesler@jboss.org
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.management.j2ee.J2EEDeployedObject
APPLICATION, CMP, EJB, JAWS, JBOSS, JBOSS_WEB, RAR, SAR, WEB
 
Fields inherited from class org.jboss.management.j2ee.J2EEManagedObject
NAME, TYPE
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
EJBModule(String jarName, javax.management.ObjectName jsr77ParentName, String[] pJVMs, String pDeploymentDescriptor, javax.management.ObjectName moduleServiceName, String pJBossDD, String pJAWSDD, String pCMPDD)
          Constructor taking the Name of this Object
 
Method Summary
 void addChild(javax.management.ObjectName pChild)
           
static javax.management.ObjectName create(javax.management.MBeanServer mbeanServer, String earName, String jarName, URL pURL, javax.management.ObjectName moduleServiceName)
          Creates the JSR-77 EJBModule
static void destroy(javax.management.MBeanServer mbeanServer, javax.management.ObjectName jsr77Name)
          Destroyes the given JSR-77 EJB-Module
 String getcmpDeploymentDescriptor()
           
 String getejb(int pIndex)
           
 String[] getejbs()
           
 String getEventType(int index)
          Returns the given Type of Events it emits according to its index in the list
 String[] getEventTypes()
           
 String getjawsDeploymentDescriptor()
           
 String getjbossDeploymentDescriptor()
           
protected  Hashtable getParentKeys(javax.management.ObjectName jsr77ParentName)
          This method can be overwritten by any subclass which must return <parent-j2eeType> indicating its parents.
 void postCreation()
           
 void preDestruction()
           
 void removeChild(javax.management.ObjectName pChild)
           
 String toString()
           
 
Methods inherited from class org.jboss.management.j2ee.J2EEModule
getjavaVM, getjavaVMs
 
Methods inherited from class org.jboss.management.j2ee.J2EEDeployedObject
getdeploymentDescriptor, getDeploymentDescriptor, getserver
 
Methods inherited from class org.jboss.management.j2ee.J2EEManagedObject
getobjectName, getObjectName, getObjectName, getparent, getType, getType, iseventProvider, isstateManageable, isstatisticsProvider, newObjectName, postRegister, preDeregister, removeObject, removeObject, sendNotification, setparent
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.management.j2ee.J2EEModuleMBean
getjavaVM, getjavaVMs
 
Methods inherited from interface org.jboss.management.j2ee.J2EEDeployedObjectMBean
getdeploymentDescriptor, getserver
 
Methods inherited from interface org.jboss.management.j2ee.J2EEManagedObjectMBean
getobjectName, getparent, iseventProvider, isstateManageable, isstatisticsProvider, setparent
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

EJBModule

public EJBModule(String jarName,
                 javax.management.ObjectName jsr77ParentName,
                 String[] pJVMs,
                 String pDeploymentDescriptor,
                 javax.management.ObjectName moduleServiceName,
                 String pJBossDD,
                 String pJAWSDD,
                 String pCMPDD)
          throws javax.management.MalformedObjectNameException,
                 InvalidParentException
Constructor taking the Name of this Object

Parameters:
jarName - the ejb jar name which must not be null
jsr77ParentName - ObjectName of the Parent this Module belongs too. Either it is a J2EEApplication or J2EEServer if a standalone module.
pJVMs - Array of ObjectNames of the JVM this module is deployed on
pDeploymentDescriptor - Content of the module deployment descriptor
moduleServiceName - ObjectName of the service this Managed Object represent used for state management (start and stop)
Throws:
javax.management.MalformedObjectNameException - If name or application name is incorrect
InvalidParameterException - If the given Name is null
InvalidParentException
Method Detail

create

public static javax.management.ObjectName create(javax.management.MBeanServer mbeanServer,
                                                 String earName,
                                                 String jarName,
                                                 URL pURL,
                                                 javax.management.ObjectName moduleServiceName)
Creates the JSR-77 EJBModule

Parameters:
mbeanServer - MBeanServer the EJBModule is created on
earName - the ear name unless null which indicates a standalone module (no EAR)
jarName - the ejb.jar name
pURL - URL path to the local deployment of the module (where to find the DD file)
moduleServiceName - ObjectName of the EjbModule service to start and stop the module
Returns:
the JSR77 ObjectName of the EJBModule

destroy

public static void destroy(javax.management.MBeanServer mbeanServer,
                           javax.management.ObjectName jsr77Name)
Destroyes the given JSR-77 EJB-Module

Parameters:
mbeanServer - The JMX MBeanServer the desired EJB-Module is registered on
jsr77Name - the JSR77 EJBModule component ObjectName

getejbs

public String[] getejbs()
Specified by:
getejbs in interface EJBModuleMBean

getejb

public String getejb(int pIndex)
Specified by:
getejb in interface EJBModuleMBean

getjbossDeploymentDescriptor

public String getjbossDeploymentDescriptor()
Specified by:
getjbossDeploymentDescriptor in interface EJBModuleMBean
Returns:
JBoss Deployment Descriptor

getjawsDeploymentDescriptor

public String getjawsDeploymentDescriptor()
Specified by:
getjawsDeploymentDescriptor in interface EJBModuleMBean
Returns:
JAWS Deployment Descriptor

getcmpDeploymentDescriptor

public String getcmpDeploymentDescriptor()
Specified by:
getcmpDeploymentDescriptor in interface EJBModuleMBean
Returns:
CMP 2.0 Deployment Descriptor

addChild

public void addChild(javax.management.ObjectName pChild)
Specified by:
addChild in interface EJBModuleMBean
Overrides:
addChild in class J2EEManagedObject

removeChild

public void removeChild(javax.management.ObjectName pChild)
Specified by:
removeChild in interface EJBModuleMBean
Overrides:
removeChild in class J2EEManagedObject

postCreation

public void postCreation()
Overrides:
postCreation in class J2EEManagedObject

preDestruction

public void preDestruction()
Overrides:
preDestruction in class J2EEManagedObject

getEventTypes

public String[] getEventTypes()
Specified by:
getEventTypes in interface EventProvider
Returns:
The actual list of Types of Events this Managed Object emits. The list is never null nor empty

getEventType

public String getEventType(int index)
Description copied from interface: EventProvider
Returns the given Type of Events it emits according to its index in the list

Specified by:
getEventType in interface EventProvider
Parameters:
index - Index of the requested Event Type
Returns:
Event Type if given Index is within the boundaries otherwise null

toString

public String toString()
Overrides:
toString in class J2EEDeployedObject

getParentKeys

protected Hashtable getParentKeys(javax.management.ObjectName jsr77ParentName)
Description copied from class: J2EEManagedObject
This method can be overwritten by any subclass which must return <parent-j2eeType> indicating its parents. By default it returns an empty hashtable instance.

Overrides:
getParentKeys in class J2EEManagedObject
Parameters:
jsr77ParentName - the WebModule parent's JSR77 ObjectName
Returns:
A hashtable with the J2EE-Application and J2EE-Server as parent


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.