RmiConnector
on the controller to send a JMXNotification. This is done by the following code:
JmxNotification cjdbcNotification = new JmxNotification(priority, "" + sequence, type, description, "" + time, controllerName, mbean .getClass().getName(), "mbeanName", hostName, "" + port, data);
This create an instance of this JmxNotification class, specific to CJDBC. We then create a new instance of the Notification object as specified in the javax.management package
Notification notification = new Notification(type, mbean, sequence, myDate .getTime(), description);
This class accepts a userData object. We wanted to set this user object to a specific CJDBC class but this forces generic JMX client to have this class in their classpath. We just serialize the JmxNotification into an XML string and feed it in the notification.
notification.setUserData(cjdbcNotification.toString());
This can be retrieved on any jmx client, and on C-JDBC specific clients, the xml is transformed into an instance of this class again for easier notification handling.
JmxNotification.java の 79 行で定義されています。
Public メソッド | |
JmxNotification (String priority, String sequence, String type, String description, String time, String controllerName, String mbeanClass, String mbeanName, String mbeanServerIP, String mbeanServerPort, Hashtable dataList) | |
Hashtable | getDataList () |
String | getDataValue (String key) |
String | getControllerName () |
String | getControllerJmxName () |
void | setControllerName (String controllerName) |
String | getDescription () |
void | setDescription (String description) |
String | getMbeanClass () |
void | setMbeanClass (String mbeanClass) |
String | getMbeanName () |
void | setMbeanName (String mbeanName) |
String | getMbeanServerIP () |
void | setMbeanServerIP (String mbeanServerIP) |
String | getMbeanServerPort () |
void | setMbeanServerPort (String mbeanServerPort) |
String | getPriority () |
void | setPriority (String priority) |
String | getSequence () |
void | setSequence (String sequence) |
String | getType () |
void | setType (String type) |
Document | toXmlDocument () |
String | toString () |
String | getTime () |
void | setTime (String time) |
void | setDataList (Hashtable dataList) |
Static Public メソッド | |
JmxNotification | createNotificationFromXmlString (String xml) throws Exception |
JmxNotification | createNotificationFromXml (Document document) |
変数 | |
String | priority |
String | sequence |
String | type |
String | description |
String | controllerName |
String | mbeanClass |
String | mbeanName |
String | mbeanServerIP |
String | mbeanServerPort |
String | time |
Hashtable | dataList |
Static Private 変数 | |
final String | ELT_jmxevent = "jmxevent" |
final String | ELT_info = "info" |
final String | ELT_source = "source" |
final String | ELT_data = "data" |
final String | ELT_priority = "priority" |
final String | ELT_sequence = "sequence" |
final String | ELT_type = "type" |
final String | ELT_description = "description" |
final String | ELT_time = "time" |
final String | ELT_controller = "controller" |
final String | ELT_mbean = "mbean" |
final String | ELT_class = "class" |
final String | ELT_server = "server" |
final String | ELT_value = "value" |
final String | ATT_ip = "ip" |
final String | ATT_port = "port" |
final String | ATT_name = "name" |
|
Create a new JmxNotification object
参照元 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.createNotificationFromXml().
|
|
Used as a factory to create an instance of this class from a xml document
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ATT_ip, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ATT_name, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ATT_port, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.controllerName, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.dataList, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.description, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_class, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_controller, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_data, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_description, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_info, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_jmxevent, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_mbean, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_priority, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_sequence, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_server, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_source, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_time, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_type, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.ELT_value, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.JmxNotification(), org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.priority, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.sequence, org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.time, と org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.type. 参照元 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.createNotificationFromXmlString().
|
|
Parse the given xml to create a notification
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.createNotificationFromXml().
|
|
Return the controller jmx name
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.getMbeanServerIP(), と org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.getMbeanServerPort(). 参照元 org.objectweb.cjdbc.console.gui.CjdbcGuiListener.handleNotification().
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.controllerName.
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.dataList.
|
|
Returns the first value of an entry in the data list of values
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.dataList. 参照元 org.objectweb.cjdbc.console.gui.CjdbcGuiListener.handleNotification().
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.description.
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.mbeanClass.
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.mbeanName.
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.mbeanServerIP. 参照元 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.getControllerJmxName().
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.mbeanServerPort. 参照元 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.getControllerJmxName().
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.priority.
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.sequence.
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.time.
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.type. 参照元 org.objectweb.cjdbc.console.gui.CjdbcGuiListener.handleNotification().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
参照先 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.toXmlDocument(). 参照元 org.objectweb.cjdbc.console.gui.CjdbcGuiListener.handleNotification().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
All the tags and attributes used to parse the notification JmxNotification.java の 84 行で定義されています。 参照元 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.createNotificationFromXml(), と org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.toXmlDocument(). |
|
|
|
|
|
|
|
|
|
|
JmxNotification.java の 109 行で定義されています。 参照元 org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.getMbeanName(), と org.objectweb.cjdbc.common.jmx.notifications.JmxNotification.toXmlDocument(). |
|
|
|
|
|
|