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:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean

public class J2EEDomain
extends J2EEManagedObject

Implements a managed object which represents a management domain.

Author:
Adriana Danes

Field Summary
 
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
 

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()
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.

Parameters:
serverName - Object name of a J2EEServer to be add in this domain

removeServer

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

Parameters:
serverName - Object name of a J2EEServer to be removed from this domain
Returns:
Object name of the removed J2EEServer