| java.lang.Object javax.management.NotificationBroadcasterSupport org.objectweb.jonas.management.ReconfigDispatcher
All known Subclasses: org.objectweb.jonas.service.AbsServiceImpl, org.objectweb.jonas.security.realm.factory.JResource, org.objectweb.jonas.common.LogManagement, org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject,
ReconfigDispatcher | public class ReconfigDispatcher extends NotificationBroadcasterSupport implements ReconfigDispatcherMBean(Code) | | This MBean implementation has to be extended by MBeans associated to reconfigurable JOnAS services
and to reconfigurable resources managed by JOnAS (DataSources and MailFactories).
These MBeans can add and remove a notification listener, and emit notifications towards this listener.
Currently only one listner may register as listener: the ReconfigManager MBean created at the server start-up.
author: Adriana Danes author: Contributor(s): |
RECONFIG_NOTIF_CLASS | final String RECONFIG_NOTIF_CLASS(Code) | | Class implementing the management notifications.
|
RECONFIG_TYPE | final public static String RECONFIG_TYPE(Code) | | Management notification type for reconfiguration events (notify that the management application made a reconfiguration operation)
|
SAVE_RECONFIG_NOTIF_CLASS | final String SAVE_RECONFIG_NOTIF_CLASS(Code) | | |
SAVE_RECONFIG_TYPE | final public static String SAVE_RECONFIG_TYPE(Code) | | Management notification type for save configuration events (notify that the management application asks for save changes)
|
getListener | public NotificationListener getListener()(Code) | | Returns the listener reference (the ReconfigManager)
the ReconfigManager reference |
getNotificationInfo | public MBeanNotificationInfo[] getNotificationInfo()(Code) | | Returns information about management notifications sent by this object
information about management notifications sent by this object |
initLogger | public void initLogger(Logger mylogger)(Code) | | Initialize the logger with a Logger provided by the reconfigurable resource
or service.
Parameters: mylogger - the logger provided by a sub-class |
sendReconfigNotification | public void sendReconfigNotification(long sequenceNumber, String resourceName, Object userData)(Code) | | Send a reconfiguration notification to the registerd listener. If no listener,
then log an error message.
Parameters: sequenceNumber - notification attribute Parameters: resourceName - the name of a reconfigurable resource or of a JOnAS service Parameters: userData - data containing the name and the value of the reconfigured property(or properties) |
sendSaveNotification | public void sendSaveNotification(long sequenceNumber, String resourceName)(Code) | | Send a save configuration notification to the registerd listener. If no listener,
then log an error message.
Parameters: sequenceNumber - notification attribute Parameters: resourceName - the name of a reconfigurable resource or of a JOnAS service |
|
|