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

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


org.jboss.management.j2ee
Class J2EEDomain

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.J2EEDomain
All Implemented Interfaces:
J2EEDomainMBean, J2EEManagedObjectMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, Serializable, org.jboss.system.Service, org.jboss.system.ServiceMBean
Direct Known Subclasses:
LocalJBossServerDomain

public class J2EEDomain
extends J2EEManagedObject
implements J2EEDomainMBean

Root class of the JBoss JSR-77 implementation of

Version:
$Revision: 1.9 $
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.J2EEManagedObject
NAME, TYPE
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, 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
J2EEDomain(String domainName)
           
 
Method Summary
 void addChild(javax.management.ObjectName pChild)
           
static String getDomainName()
          Get the local J2EEDomain instance name
static javax.management.ObjectName getDomainServerName(javax.management.MBeanServer mbeanServer)
          Query for the J2EEServer MBean in the given domain.
 String getserver(int pIndex)
           
 String[] getservers()
          Return the J2EEServer names associated with this domain.
 void removeChild(javax.management.ObjectName pChild)
           
 String toString()
           
 
Methods inherited from class org.jboss.management.j2ee.J2EEManagedObject
getobjectName, getObjectName, getObjectName, getparent, getParentKeys, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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

J2EEDomain

public J2EEDomain(String domainName)
           throws javax.management.MalformedObjectNameException,
                  InvalidParentException
Method Detail

getDomainName

public static String getDomainName()
Get the local J2EEDomain instance name

Returns:
the J2EEDomain object name for the local server.

getDomainServerName

public static javax.management.ObjectName getDomainServerName(javax.management.MBeanServer mbeanServer)
Query for the J2EEServer MBean in the given domain.

Parameters:
mbeanServer - the local MBeanServer
Returns:
the J2EEServer name if found, null otherwise

getservers

public String[] getservers()
Return the J2EEServer names associated with this domain.

Specified by:
getservers in interface J2EEDomainMBean

getserver

public String getserver(int pIndex)
Specified by:
getserver in interface J2EEDomainMBean

addChild

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

removeChild

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

toString

public String toString()
Overrides:
toString in class J2EEManagedObject


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