当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 management API Documentation 英文版文档
J2EEApplication (JBoss/Management API) - JBoss 4.0.1 sp1 management API Documentation 英文版文档
org.jboss.management.j2ee
Class J2EEApplication
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.J2EEApplication
- All Implemented Interfaces:
- J2EEApplicationMBean, J2EEDeployedObjectMBean, J2EEManagedObjectMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, Serializable, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class J2EEApplication
- extends J2EEDeployedObject
- implements J2EEApplicationMBean
Root class of the JBoss JSR-77 implementation of J2EEApplication.
- Version:
- $Revision: 1.19 $
- Author:
- Andreas Schaefer., thomas.diesler@jboss.org
- 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 |
J2EEApplication(String name,
javax.management.ObjectName mbeanServer,
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,
URL url)
Create a JSR77 ear model instnace |
static void |
destroy(javax.management.MBeanServer mbeanServer,
javax.management.ObjectName jsr77Name)
Destroy the J2EEApplication component |
String |
getmodule(int pIndex)
|
String[] |
getmodules()
|
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 pChild)
|
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 |
J2EEApplication
public J2EEApplication(String name,
javax.management.ObjectName mbeanServer,
String pDeploymentDescriptor)
throws javax.management.MalformedObjectNameException,
InvalidParentException
- Constructor taking the Name of this Object
- Parameters:
name
- Name to be set which must not be nullpDeploymentDescriptor
-
- 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,
URL url)
- Create a JSR77 ear model instnace
- Parameters:
mbeanServer
- the MBeanServer to register withearName
- the name of the j2ee ear deploymenturl
- the ear URL, which may be null to represent a standalone
jar/war/war without an ear
- Returns:
- the JSR77 ObjectName for the J2EEApplication
destroy
public static void destroy(javax.management.MBeanServer mbeanServer,
javax.management.ObjectName jsr77Name)
- Destroy the J2EEApplication component
- Parameters:
mbeanServer
- the MBeanServer used during createjsr77Name
- the JSR77 J2EEApplication component name
getmodules
public String[] getmodules()
- Specified by:
getmodules
in interface J2EEApplicationMBean
getmodule
public String getmodule(int pIndex)
- Specified by:
getmodule
in interface J2EEApplicationMBean
addChild
public void addChild(javax.management.ObjectName pChild)
- Specified by:
addChild
in interface J2EEApplicationMBean
- Overrides:
addChild
in class J2EEManagedObject
removeChild
public void removeChild(javax.management.ObjectName pChild)
- Specified by:
removeChild
in interface J2EEApplicationMBean
- Overrides:
removeChild
in class J2EEManagedObject
toString
public String toString()
- Overrides:
toString
in class J2EEDeployedObject
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 J2EE Server as parent
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.