|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.ow2.jonas.lib.reconfig.ReconfigEmitter
public class ReconfigEmitter
This class is to be extended by classes which need to send reconfiguration JMX notifications.
It extends NotificationBroadcasterSupport
which provides addNotificationListener implementation.
Listeners are MBeans interested by handling the reconfiguration notifications emitted
by the sub-classes instances.
This class replaces ReconfigDispatcher class.
Field Summary | |
---|---|
static String |
RECONFIG_TYPE
Management notification type for reconfiguration events (notify that the management application made a reconfiguration operation) |
static String |
SAVE_RECONFIG_TYPE
Management notification type for save configuration events (notify that the management application asks for save changes) |
Constructor Summary | |
---|---|
ReconfigEmitter()
|
Method Summary | |
---|---|
void |
initLogger(org.objectweb.util.monolog.api.Logger mylogger)
Initialize the logger with a Logger provided by the reconfigurable resource or service. |
void |
sendReconfigNotification(long sequenceNumber,
String resourceName,
Object userData)
Send a reconfiguration notification to the registerd listener. |
void |
sendSaveNotification(long sequenceNumber,
String resourceName)
Send a save configuration notification to the registerd listeners. |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, 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 String RECONFIG_TYPE
public static final String SAVE_RECONFIG_TYPE
Constructor Detail |
---|
public ReconfigEmitter()
Method Detail |
---|
public void initLogger(org.objectweb.util.monolog.api.Logger mylogger)
mylogger
- the logger provided by a sub-classpublic void sendSaveNotification(long sequenceNumber, String resourceName)
sequenceNumber
- notification attributeresourceName
- the name of a reconfigurable resource or of a JOnAS servicepublic void sendReconfigNotification(long sequenceNumber, String resourceName, 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 |