org.jboss.management.j2ee
Class J2EEDomain

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.management.j2ee.J2EEManagedObject (src) 
              extended byorg.jboss.management.j2ee.J2EEDomain
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)
Direct Known Subclasses:
LocalJBossServerDomain (src)

public class J2EEDomain
extends J2EEManagedObject (src)

Root class of the JBoss JSR-77 implementation of


Field Summary
 
Fields inherited from class org.jboss.management.j2ee.J2EEManagedObject (src)
NAME, TYPE
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
J2EEDomain(java.lang.String domainName)
           
 
Method Summary
 void addChild(ObjectName (src)  pChild)
           
static java.lang.String getDomainName()
          Get the local J2EEDomain instance name
static ObjectName (src) getDomainServerName(MBeanServer (src)  mbeanServer)
          Query for the J2EEServer MBean in the given domain.
 java.lang.String getserver(int pIndex)
           
 java.lang.String[] getservers()
          Return the J2EEServer names associated with this domain.
 void removeChild(ObjectName (src)  pChild)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jboss.management.j2ee.J2EEManagedObject (src)
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 (src)
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 (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

J2EEDomain

public J2EEDomain(java.lang.String domainName)
           throws MalformedObjectNameException (src) ,
                  InvalidParentException (src) 
Method Detail

getDomainName

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

Returns:
the J2EEDomain object name for the local server.

getDomainServerName

public static ObjectName (src)  getDomainServerName(MBeanServer (src)  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 java.lang.String[] getservers()
Return the J2EEServer names associated with this domain.


getserver

public java.lang.String getserver(int pIndex)

addChild

public void addChild(ObjectName (src)  pChild)
Overrides:
addChild in class J2EEManagedObject (src)

removeChild

public void removeChild(ObjectName (src)  pChild)
Overrides:
removeChild in class J2EEManagedObject (src)

toString

public java.lang.String toString()
Overrides:
toString in class J2EEManagedObject (src)