org.objectweb.jonas.management.j2eemanagement
Class J2EEDomain

java.lang.Object
  extended byjavax.management.NotificationBroadcasterSupport
      extended byorg.objectweb.jonas.management.ReconfigDispatcher
          extended byorg.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
              extended byorg.objectweb.jonas.management.j2eemanagement.J2EEDomain
All Implemented Interfaces:
J2EEDomainMBean, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean

public class J2EEDomain
extends J2EEManagedObject
implements J2EEDomainMBean

Implements a managed object which represents a management domain.


Field Summary
protected  java.util.ArrayList servers
           
 
Fields inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
J2EEDomain(java.lang.String objectName, boolean stateManageable, boolean statisticsProvider, boolean eventProvider)
          MBean constructor
 
Method Summary
 void addServer(java.lang.String serverName)
          Add an object name to the servers list.
 java.util.List getServers()
           
 java.lang.String removeServer(java.lang.String serverName)
          Remove an object name from the servers list.
 
Methods inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider
 
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
handleNotification, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servers

protected java.util.ArrayList servers
Constructor Detail

J2EEDomain

public J2EEDomain(java.lang.String objectName,
                  boolean stateManageable,
                  boolean statisticsProvider,
                  boolean eventProvider)
MBean constructor

Parameters:
objectName - object name of the managed object
stateManageable - if true, this managed object implements J2EE State Management Model
statisticsProvider - if true, this managed object implements the J2EE StatisticProvide Model
eventProvider - if true, this managed object implements the J2EE EventProvider Model
Method Detail

getServers

public java.util.List getServers()
Specified by:
getServers in interface J2EEDomainMBean
Returns:
The list of object names corresponding to the servers associated with this domain

addServer

public void addServer(java.lang.String serverName)
Add an object name to the servers list.

Specified by:
addServer in interface J2EEDomainMBean
Parameters:
serverName - Object name of a J2EEServer managed object associated with this domain

removeServer

public java.lang.String removeServer(java.lang.String serverName)
Remove an object name from the servers list.

Specified by:
removeServer in interface J2EEDomainMBean
Returns:
Object name of a server associated with this domain