org.objectweb.jonas.management
Class ReconfigManager
java.lang.Object
org.objectweb.jonas.management.ReconfigManager
- All Implemented Interfaces:
- java.util.EventListener, javax.management.NotificationListener, ReconfigManagerMBean
public class ReconfigManager
- extends java.lang.Object
- implements ReconfigManagerMBean, javax.management.NotificationListener
This MBean allows persistent reconfiguration of a JOnAS server, alltogether with its embedded services,
and possibly used resources like Data Sources ans Mail Factories.
This class implements NotificationListener interface. The ReconfigManager adds itself as Listener to
the following JMX Notification types (JAVA types):
- MBeanServerNotification
, sent by the MBean server on MBeans registration/un-registration
- Notification with type equal to ReconfigDispatcher.RECONFIG_TYPE
- Notification with type equal to ReconfigDispatcher.SAVE_RECONFIG_TYPE
- Author:
- Adriana Danes
04/09/20 Update with JSR77 JDBCDataSource MBeans
Constructor Summary |
ReconfigManager(java.util.Properties serverProperties,
javax.management.MBeanServer jmxServer)
Create the ReconfigManager MBean instance and add itself as listner to MBeanServerNotifications. |
Method Summary |
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback)
Treat the notifications emitted by those MBeans having the ReconfigManager added as listener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReconfigManager
public ReconfigManager(java.util.Properties serverProperties,
javax.management.MBeanServer jmxServer)
throws ReconfigException
- Create the ReconfigManager MBean instance and add itself as listner to MBeanServerNotifications.
- Parameters:
serverProperties
- The JOnAS server's initial configuration propertiesjmxServer
- The JOnAS server's MBean server
- Throws:
ReconfigException
handleNotification
public void handleNotification(javax.management.Notification notification,
java.lang.Object handback)
- Treat the notifications emitted by those MBeans having the ReconfigManager added as listener.
This method determines the type of the notification and calls the specific treatement.
- Specified by:
handleNotification
in interface javax.management.NotificationListener
- Parameters:
notification
- received notificationhandback
- received handback object