当前页面:
在线文档首页 >
JBoss 3.2.7 management API Documentation 英文版文档
ResourceAdapterModule (JBoss/Management API) - JBoss 3.2.7 management API Documentation 英文版文档
org.jboss.management.j2ee
Class ResourceAdapterModule
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.management.j2ee.J2EEManagedObject
org.jboss.management.j2ee.J2EEDeployedObject
org.jboss.management.j2ee.J2EEModule
org.jboss.management.j2ee.ResourceAdapterModule
- All Implemented Interfaces:
- J2EEDeployedObjectMBean, J2EEManagedObjectMBean, J2EEModuleMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ResourceAdapterModuleMBean, Serializable, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class ResourceAdapterModule
- extends J2EEModule
- implements ResourceAdapterModuleMBean
Root class of the JBoss JSR-77 implementation of
ResourceAdapterModule
.
- Version:
- $Revision: 1.9.2.7 $
- Author:
- Scott McLaughlin.
- See Also:
- Serialized Form
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 |
ResourceAdapterModule(String rarName,
javax.management.ObjectName jsr77ParentName,
javax.management.ObjectName[] pJVMs,
String pDeploymentDescriptor)
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 rarName,
URL pURL)
Creates the JSR-77 EJBModule |
static void |
destroy(javax.management.MBeanServer mbeanServer,
javax.management.ObjectName jsr77Name)
Destroyes the given JSR-77 RARModule |
protected Hashtable |
getParentKeys(javax.management.ObjectName jsr77ParentName)
This method can be overwritten by any subclass which must
return <parent-j2eeType> indicating its parents. |
javax.management.ObjectName |
getResourceAdapter(int pIndex)
|
javax.management.ObjectName[] |
getResourceAdapters()
|
void |
removeChild(javax.management.ObjectName pChild)
|
String |
toString()
|
Methods inherited from class org.jboss.management.j2ee.J2EEManagedObject |
getObjectName, getObjectName, getParent, getType, isEventProvider, isStateManageable, isStatisticsProvider, postCreation, postRegister, preDeregister, preDestruction, 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 interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
J2EE_TYPE
public static final String J2EE_TYPE
- See Also:
- Constant Field Values
ResourceAdapterModule
public ResourceAdapterModule(String rarName,
javax.management.ObjectName jsr77ParentName,
javax.management.ObjectName[] pJVMs,
String pDeploymentDescriptor)
throws javax.management.MalformedObjectNameException,
InvalidParentException
- Constructor taking the Name of this Object
- Parameters:
rarName
- Name to be set which must not be nulljsr77ParentName
- ObjectName of the Parent this Module belongs
too. Either it is a J2EEApplication or J2EEServer
if a standalone module.pDeploymentDescriptor
-
- Throws:
InvalidParameterException
- If the given Name is null
javax.management.MalformedObjectNameException
InvalidParentException
create
public static javax.management.ObjectName create(javax.management.MBeanServer mbeanServer,
String earName,
String rarName,
URL pURL)
- Creates the JSR-77 EJBModule
- Parameters:
mbeanServer
- MBeanServer the EJBModule is created onearName
- the ear name unless null which indicates a standalone module (no EAR)rarName
- the RAR namepURL
- URL path to the local deployment of the module (where to find the DD file)
- Returns:
- the JSR77 ObjectName of the RARModule
destroy
public static void destroy(javax.management.MBeanServer mbeanServer,
javax.management.ObjectName jsr77Name)
- Destroyes the given JSR-77 RARModule
- Parameters:
mbeanServer
- The JMX MBeanServer the desired RARModule is registered onjsr77Name
- the JSR77 RARModule component ObjectName
getResourceAdapters
public javax.management.ObjectName[] getResourceAdapters()
- Specified by:
getResourceAdapters
in interface ResourceAdapterModuleMBean
getResourceAdapter
public javax.management.ObjectName getResourceAdapter(int pIndex)
- Specified by:
getResourceAdapter
in interface ResourceAdapterModuleMBean
addChild
public void addChild(javax.management.ObjectName pChild)
- Specified by:
addChild
in interface ResourceAdapterModuleMBean
- Overrides:
addChild
in class J2EEManagedObject
removeChild
public void removeChild(javax.management.ObjectName pChild)
- Specified by:
removeChild
in interface ResourceAdapterModuleMBean
- Overrides:
removeChild
in class J2EEManagedObject
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.