当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 management API Documentation 英文版文档
ResourceAdapter (JBoss/Management API) - JBoss 4.0.1 sp1 management API Documentation 英文版文档
org.jboss.management.j2ee
Class ResourceAdapter
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.management.j2ee.J2EEManagedObject
org.jboss.management.j2ee.ResourceAdapter
- All Implemented Interfaces:
- J2EEManagedObjectMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ResourceAdapterMBean, Serializable, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class ResourceAdapter
- extends J2EEManagedObject
- implements ResourceAdapterMBean
Root class of the JBoss JSR-77 implementation of ResourceAdapter.
- Version:
- $Revision: 1.8.6.1 $
- 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 |
ResourceAdapter(String displayName,
javax.management.ObjectName jsr77ParentName,
javax.management.ObjectName rarServiceName)
|
Method Summary |
void |
addChild(javax.management.ObjectName j2eeName)
|
static javax.management.ObjectName |
create(javax.management.MBeanServer mbeanServer,
String displayName,
javax.management.ObjectName jsr77ParentName,
javax.management.ObjectName rarServiceName)
|
static void |
destroy(javax.management.MBeanServer mbeanServer,
String displayName)
|
javax.management.ObjectName |
getJBossServiceName()
|
javax.management.ObjectName |
getjcaResource()
|
javax.management.ObjectName |
getJcaResource()
|
protected Hashtable |
getParentKeys(javax.management.ObjectName pParent)
This method can be overwritten by any subclass which must
return <parent-j2eeType> indicating its parents. |
void |
removeChild(javax.management.ObjectName j2eeName)
|
String |
toString()
|
Methods inherited from class org.jboss.management.j2ee.J2EEManagedObject |
getobjectName, getObjectName, getObjectName, getparent, getType, getType, iseventProvider, isstateManageable, isstatisticsProvider, newObjectName, 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 |
ResourceAdapter
public ResourceAdapter(String displayName,
javax.management.ObjectName jsr77ParentName,
javax.management.ObjectName rarServiceName)
throws javax.management.MalformedObjectNameException,
InvalidParentException
- Parameters:
displayName
- The ra.xml/connector/display-name valuejsr77ParentName
- ObjectName of the ResourceAdaptorModule
create
public static javax.management.ObjectName create(javax.management.MBeanServer mbeanServer,
String displayName,
javax.management.ObjectName jsr77ParentName,
javax.management.ObjectName rarServiceName)
destroy
public static void destroy(javax.management.MBeanServer mbeanServer,
String displayName)
getJBossServiceName
public javax.management.ObjectName getJBossServiceName()
- Specified by:
getJBossServiceName
in interface ResourceAdapterMBean
getJcaResource
public javax.management.ObjectName getJcaResource()
- Specified by:
getJcaResource
in interface ResourceAdapterMBean
getjcaResource
public javax.management.ObjectName getjcaResource()
- Specified by:
getjcaResource
in interface ResourceAdapterMBean
toString
public String toString()
- Overrides:
toString
in class J2EEManagedObject
addChild
public void addChild(javax.management.ObjectName j2eeName)
- Specified by:
addChild
in interface ResourceAdapterMBean
- Overrides:
addChild
in class J2EEManagedObject
removeChild
public void removeChild(javax.management.ObjectName j2eeName)
- Specified by:
removeChild
in interface ResourceAdapterMBean
- Overrides:
removeChild
in class J2EEManagedObject
getParentKeys
protected Hashtable getParentKeys(javax.management.ObjectName pParent)
- 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:
pParent
- The direct parent of this class
- Returns:
- A hashtable with the Resource-Adapter-Module, J2EE-Application and J2EE-Server as parent
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.