org.objectweb.jonas.management.ReconfigDispatcher Class Reference

Inherits org.objectweb.jonas.management.ReconfigDispatcherMBean.

Inherited by org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject.

Inheritance diagram for org.objectweb.jonas.management.ReconfigDispatcher:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.management.ReconfigDispatcher:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void initLogger (Logger mylogger)
void addNotificationListener (NotificationListener listner, NotificationFilter filter, java.lang.Object handback) throws java.lang.IllegalArgumentException
void removeNotificationListener (NotificationListener listner) throws ListenerNotFoundException
MBeanNotificationInfo[] getNotificationInfo ()
NotificationListener getListener ()
NotificationFilter getFilter ()
java.lang.Object getHandback ()
void sendSaveNotification (long sequenceNumber, String resourceName)
void sendReconfigNotification (long sequenceNumber, String resourceName, Object userData)

Static Public Attributes

final String RECONFIG_TYPE = "jonas.management.reconfiguration"
final String SAVE_RECONFIG_TYPE = "jonas.management.reconfiguration.save"

Package Attributes

final String RECONFIG_NOTIF_CLASS = "jmx.management.Notification"
ListenerJavaBean myListener = null

Detailed Description

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 Contributor(s):

Definition at line 46 of file ReconfigDispatcher.java.


Member Function Documentation

void org.objectweb.jonas.management.ReconfigDispatcher.addNotificationListener NotificationListener  listner,
NotificationFilter  filter,
java.lang.Object  handback
throws java.lang.IllegalArgumentException
 

This method is called by the ReconfigManager. the ReconfigManager null (not used) null (not used

Definition at line 84 of file ReconfigDispatcher.java.

References org.objectweb.jonas.management.ReconfigDispatcher.myListener.

NotificationFilter org.objectweb.jonas.management.ReconfigDispatcher.getFilter  ) 
 

Returns the listner's filter

Returns:
the filter object

Definition at line 141 of file ReconfigDispatcher.java.

References org.objectweb.jonas.management.ListenerJavaBean.getFilter(), and org.objectweb.jonas.management.ReconfigDispatcher.myListener.

Here is the call graph for this function:

java.lang.Object org.objectweb.jonas.management.ReconfigDispatcher.getHandback  ) 
 

Returns the listner's handback

Returns:
the handback object

Definition at line 151 of file ReconfigDispatcher.java.

References org.objectweb.jonas.management.ListenerJavaBean.getHandback(), and org.objectweb.jonas.management.ReconfigDispatcher.myListener.

Referenced by org.objectweb.jonas.management.ReconfigDispatcher.sendReconfigNotification(), and org.objectweb.jonas.management.ReconfigDispatcher.sendSaveNotification().

Here is the call graph for this function:

NotificationListener org.objectweb.jonas.management.ReconfigDispatcher.getListener  ) 
 

Returns the listener reference (the ReconfigManager)

Returns:
the ReconfigManager reference

Definition at line 131 of file ReconfigDispatcher.java.

References org.objectweb.jonas.management.ListenerJavaBean.getListener(), and org.objectweb.jonas.management.ReconfigDispatcher.myListener.

Referenced by org.objectweb.jonas.management.ReconfigDispatcher.sendReconfigNotification(), and org.objectweb.jonas.management.ReconfigDispatcher.sendSaveNotification().

Here is the call graph for this function:

MBeanNotificationInfo [] org.objectweb.jonas.management.ReconfigDispatcher.getNotificationInfo  ) 
 

Returns information about management notifications sent by this object

Returns:
information about management notifications sent by this object

Definition at line 112 of file ReconfigDispatcher.java.

References org.objectweb.jonas.management.ReconfigDispatcher.RECONFIG_NOTIF_CLASS, org.objectweb.jonas.management.ReconfigDispatcher.RECONFIG_TYPE, and org.objectweb.jonas.management.ReconfigDispatcher.SAVE_RECONFIG_TYPE.

void org.objectweb.jonas.management.ReconfigDispatcher.initLogger Logger  mylogger  ) 
 

Initialize the logger with a Logger provided by the reconfigurable resource or service.

Parameters:
mylogger the logger provided by a sub-class

Definition at line 74 of file ReconfigDispatcher.java.

void org.objectweb.jonas.management.ReconfigDispatcher.removeNotificationListener NotificationListener  listner  )  throws ListenerNotFoundException
 

This method is called by the ReconfigManager when it no longer needs to receive management notifications. the ReconfigManager

Definition at line 103 of file ReconfigDispatcher.java.

References org.objectweb.jonas.management.ListenerJavaBean.getListener(), and org.objectweb.jonas.management.ReconfigDispatcher.myListener.

Here is the call graph for this function:

void org.objectweb.jonas.management.ReconfigDispatcher.sendReconfigNotification long  sequenceNumber,
String  resourceName,
Object  userData
 

Send a reconfiguration notification to the registerd listener. If no listener, then log an error message.

Parameters:
sequenceNumber notification attribute
resourceName the name of a reconfigurable resource or of a JOnAS service
userData data containing the name and the value of the reconfigured property(or properties)

Definition at line 185 of file ReconfigDispatcher.java.

References org.objectweb.jonas.management.ReconfigDispatcher.getHandback(), org.objectweb.jonas.management.ReconfigDispatcher.getListener(), and org.objectweb.jonas.management.ReconfigDispatcher.RECONFIG_TYPE.

Here is the call graph for this function:

void org.objectweb.jonas.management.ReconfigDispatcher.sendSaveNotification long  sequenceNumber,
String  resourceName
 

Send a save configuration notification to the registerd listener. If no listener, then log an error message.

Parameters:
sequenceNumber notification attribute
resourceName the name of a reconfigurable resource or of a JOnAS service

Definition at line 164 of file ReconfigDispatcher.java.

References org.objectweb.jonas.management.ReconfigDispatcher.getHandback(), org.objectweb.jonas.management.ReconfigDispatcher.getListener(), and org.objectweb.jonas.management.ReconfigDispatcher.SAVE_RECONFIG_TYPE.

Here is the call graph for this function:


Member Data Documentation

ListenerJavaBean org.objectweb.jonas.management.ReconfigDispatcher.myListener = null [package]
 

There may be only one listener : the ReconfigManager MBean.

Definition at line 67 of file ReconfigDispatcher.java.

Referenced by org.objectweb.jonas.management.ReconfigDispatcher.addNotificationListener(), org.objectweb.jonas.management.ReconfigDispatcher.getFilter(), org.objectweb.jonas.management.ReconfigDispatcher.getHandback(), org.objectweb.jonas.management.ReconfigDispatcher.getListener(), and org.objectweb.jonas.management.ReconfigDispatcher.removeNotificationListener().

final String org.objectweb.jonas.management.ReconfigDispatcher.RECONFIG_NOTIF_CLASS = "jmx.management.Notification" [package]
 

Class implementing the management notifications.

Definition at line 61 of file ReconfigDispatcher.java.

Referenced by org.objectweb.jonas.management.ReconfigDispatcher.getNotificationInfo().

final String org.objectweb.jonas.management.ReconfigDispatcher.RECONFIG_TYPE = "jonas.management.reconfiguration" [static]
 

Management notification type for reconfiguration events (notify that the management application made a reconfiguration operation)

Definition at line 53 of file ReconfigDispatcher.java.

Referenced by org.objectweb.jonas.management.ReconfigDispatcher.getNotificationInfo(), and org.objectweb.jonas.management.ReconfigDispatcher.sendReconfigNotification().

final String org.objectweb.jonas.management.ReconfigDispatcher.SAVE_RECONFIG_TYPE = "jonas.management.reconfiguration.save" [static]
 

Management notification type for save configuration events (notify that the management application asks for save changes)

Definition at line 57 of file ReconfigDispatcher.java.

Referenced by org.objectweb.jonas.management.ReconfigDispatcher.getNotificationInfo(), and org.objectweb.jonas.management.ReconfigDispatcher.sendSaveNotification().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:10 2005 for JOnAS by  doxygen 1.3.9.1