|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.objectweb.jonas.management.ReconfigDispatcher
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.
Field Summary | |
static java.lang.String |
RECONFIG_TYPE
Management notification type for reconfiguration events (notify that the management application made a reconfiguration operation) |
static java.lang.String |
SAVE_RECONFIG_TYPE
Management notification type for save configuration events (notify that the management application asks for save changes) |
Constructor Summary | |
ReconfigDispatcher()
|
Method Summary | |
void |
addNotificationListener(javax.management.NotificationListener listner,
javax.management.NotificationFilter filter,
java.lang.Object handback)
This method is called by the ReconfigManager. |
javax.management.NotificationFilter |
getFilter()
Returns the listner's filter |
java.lang.Object |
getHandback()
Returns the listner's handback |
javax.management.NotificationListener |
getListener()
Returns the listener reference (the ReconfigManager) |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
Returns information about management notifications sent by this object |
void |
initLogger(org.objectweb.util.monolog.api.Logger mylogger)
Initialize the logger with a Logger provided by the reconfigurable resource or service. |
void |
removeNotificationListener(javax.management.NotificationListener listner)
This method is called by the ReconfigManager when it no longer needs to receive management notifications. |
void |
sendReconfigNotification(long sequenceNumber,
java.lang.String resourceName,
java.lang.Object userData)
Send a reconfiguration notification to the registerd listener. |
void |
sendSaveNotification(long sequenceNumber,
java.lang.String resourceName)
Send a save configuration notification to the registerd listener. |
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 |
Field Detail |
public static final java.lang.String RECONFIG_TYPE
public static final java.lang.String SAVE_RECONFIG_TYPE
Constructor Detail |
public ReconfigDispatcher()
Method Detail |
public void initLogger(org.objectweb.util.monolog.api.Logger mylogger)
mylogger
- the logger provided by a sub-classpublic void addNotificationListener(javax.management.NotificationListener listner, javax.management.NotificationFilter filter, java.lang.Object handback) throws java.lang.IllegalArgumentException
addNotificationListener
in interface javax.management.NotificationBroadcaster
java.lang.IllegalArgumentException
public void removeNotificationListener(javax.management.NotificationListener listner) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationBroadcaster
javax.management.ListenerNotFoundException
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
public javax.management.NotificationListener getListener()
public javax.management.NotificationFilter getFilter()
public java.lang.Object getHandback()
public void sendSaveNotification(long sequenceNumber, java.lang.String resourceName)
sequenceNumber
- notification attributeresourceName
- the name of a reconfigurable resource or of a JOnAS servicepublic void sendReconfigNotification(long sequenceNumber, java.lang.String resourceName, java.lang.Object userData)
sequenceNumber
- notification attributeresourceName
- the name of a reconfigurable resource or of a JOnAS serviceuserData
- data containing the name and the value of the reconfigured property(or properties)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |