org.ow2.jonas.lib.management.reconfig
Class ReconfigManager
java.lang.Object
org.ow2.jonas.lib.management.javaee.ManagedObject
org.ow2.jonas.lib.management.javaee.J2EEManagedObject
org.ow2.jonas.lib.management.reconfig.ReconfigManager
- All Implemented Interfaces:
- EventListener, NotificationListener
public class ReconfigManager
- extends J2EEManagedObject
- implements NotificationListener
This MBean allows persistent reconfiguration of a JOnAS server, all together with its embedded services,
and possibly used resources like Data Sources and 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 ReconfigEmitter.RECONFIG_TYPE
- Notification with type equal to ReconfigEmitter.SAVE_RECONFIG_TYPE
- Author:
- Adriana Danes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReconfigManager
public ReconfigManager(ObjectName objectName,
ServerProperties props)
- ReconfigManager constructor.
- Parameters:
objectName
- Associated MBean's OBJECT_NAMEprops
- JOnAS server configuration and environment properties
addMBeanServerDelegateListener
public void addMBeanServerDelegateListener()
throws JMException
- Allow for this MBean to receive REGISTRATION_NOTIFICATION/UNREGISTRATION_NOTIFICATION
emitted by the JMX server.
- Throws:
JMException
- Could not register listener. The ReconfigManager is not working.
handleNotification
public void handleNotification(Notification notification,
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 treatment.
- Specified by:
handleNotification
in interface NotificationListener
- Parameters:
notification
- received notificationhandback
- received hand-back object
setJmxService
public void setJmxService(JmxService jmxService)
- Parameters:
jmxService
- the jmxService to set
setLogConfigFileName
public void setLogConfigFileName(String logConfigFileName)
- Parameters:
logConfigFileName
- file name for the log configuration.
setServerConfigFileName
public void setServerConfigFileName(String serverConfigFileName)
Copyright © 2010 OW2 Consortium. All Rights Reserved.