|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
org.objectweb.jonas.management.j2eemanagement.J2EEDomain
Implements a managed object which represents a management domain.
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,
java.lang.String[] connectorServerURLs)
Add an object name to the servers list. |
java.lang.String[] |
getConnectorServerURLs(java.lang.String serverName)
Return the connector server urls for a given server. |
java.lang.String[] |
getServerNames()
Returns the names of the servers currently managed. |
java.lang.String[] |
getServers()
|
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback)
|
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
Add J2EEDomain MBean (myself) as listener to registration/unregistration notifications of JOnAS management MBeans. |
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
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 |
public J2EEDomain(java.lang.String objectName, boolean stateManageable, boolean statisticsProvider, boolean eventProvider) throws javax.management.JMException
objectName
- object name of the managed objectstateManageable
- if true, this managed object implements J2EE State Management ModelstatisticsProvider
- if true, this managed object implements the J2EE StatisticProvide ModeleventProvider
- if true, this managed object implements the J2EE EventProvider Model
javax.management.JMException
- ..Method Detail |
public java.lang.String[] getServers()
public java.lang.String[] getServerNames()
public java.lang.String[] getConnectorServerURLs(java.lang.String serverName)
serverName
- the server we are inquiring for
public void addServer(java.lang.String serverName, java.lang.String[] connectorServerURLs)
servers
list.
serverName
- ObjectName (String form) of a J2EEServer to be add in this domainconnectorServerURLs
- connector server urls for this serverpublic java.lang.String removeServer(java.lang.String serverName)
servers
list.
serverName
- ObjectName (String form) of a J2EEServer to be removed from
this domain
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws java.lang.Exception
preRegister
in interface javax.management.MBeanRegistration
server
- The MBean server in which the MBean will be registered.name
- The object name of the MBean
java.lang.Exception
public void postRegister(java.lang.Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
registrationDone
- Indicates whether or not the MBean has been successfully registeredpublic void preDeregister() throws java.lang.Exception
preDeregister
in interface javax.management.MBeanRegistration
java.lang.Exception
MBeanRegistration.preDeregister()
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
MBeanRegistration.postDeregister()
public void handleNotification(javax.management.Notification notification, java.lang.Object handback)
handleNotification
in interface javax.management.NotificationListener
notification
- received notificationhandback
- received handback
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |