Java Doc for JmxNotification.java in  » Database-JDBC-Connection-Pool » sequoia-2.10.9 » org » continuent » sequoia » common » jmx » notifications » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database JDBC Connection Pool » sequoia 2.10.9 » org.continuent.sequoia.common.jmx.notifications 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.continuent.sequoia.common.jmx.notifications.JmxNotification

JmxNotification
public class JmxNotification (Code)
This class defines a JmxNotification class. This class is used by the RmiConnector on the controller to send a JMXNotification. This is done by the following code:
 JmxNotification sequoiaNotification = 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 Sequoia. 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 Sequoia 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(sequoiaNotification.toString());
 
This can be retrieved on any jmx client, and on Sequoia specific clients, the xml is transformed into an instance of this class again for easier notification handling.
author:
   Nicolas Modrzyk


Field Summary
 StringcontrollerName
    
 HashtabledataList
    
 Stringdescription
    
 StringmbeanClass
    
 StringmbeanName
    
 StringmbeanServerIP
    
 StringmbeanServerPort
    
 Stringpriority
    
 Stringsequence
    
 Stringtime
    
 Stringtype
    

Constructor Summary
public  JmxNotification(String priority, String sequence, String type, String description, String time, String controllerName, String mbeanClass, String mbeanName, String mbeanServerIP, String mbeanServerPort, Hashtable dataList)
    

Method Summary
public static  JmxNotificationcreateNotificationFromXml(Document document)
    
public static  JmxNotificationcreateNotificationFromXmlString(String xml)
    
public  StringgetControllerJmxName()
    
public  StringgetControllerName()
    
public  HashtablegetDataList()
    
public  StringgetDataValue(String key)
    
public  StringgetDescription()
    
public  StringgetMbeanClass()
    
public  StringgetMbeanName()
    
public  StringgetMbeanServerIP()
    
public  StringgetMbeanServerPort()
    
public  StringgetPriority()
    
public  StringgetSequence()
    
public  StringgetTime()
    
public  StringgetType()
    
public  voidsetControllerName(String controllerName)
    
public  voidsetDataList(Hashtable dataList)
    
public  voidsetDescription(String description)
    
public  voidsetMbeanClass(String mbeanClass)
    
public  voidsetMbeanName(String mbeanName)
    
public  voidsetMbeanServerIP(String mbeanServerIP)
    
public  voidsetMbeanServerPort(String mbeanServerPort)
    
public  voidsetPriority(String priority)
    
public  voidsetSequence(String sequence)
    
public  voidsetTime(String time)
    
public  voidsetType(String type)
    
public  StringtoString()
    
public  DocumenttoXmlDocument()
    

Field Detail
controllerName
String controllerName(Code)



dataList
Hashtable dataList(Code)



description
String description(Code)



mbeanClass
String mbeanClass(Code)



mbeanName
String mbeanName(Code)



mbeanServerIP
String mbeanServerIP(Code)



mbeanServerPort
String mbeanServerPort(Code)



priority
String priority(Code)



sequence
String sequence(Code)



time
String time(Code)



type
String type(Code)




Constructor Detail
JmxNotification
public JmxNotification(String priority, String sequence, String type, String description, String time, String controllerName, String mbeanClass, String mbeanName, String mbeanServerIP, String mbeanServerPort, Hashtable dataList)(Code)
Create a new JmxNotification object
Parameters:
  priority - notification priority
Parameters:
  sequence - sequence number
Parameters:
  type - notification type
Parameters:
  description - notification description
Parameters:
  time - time the notification was issued
Parameters:
  controllerName - name of the controller issuing the notification
Parameters:
  mbeanClass - class of the mbean issuing the notification
Parameters:
  mbeanName - name of the mbean issuing the notification
Parameters:
  mbeanServerIP - IP address of the mbean
Parameters:
  mbeanServerPort - Port of the mbean
Parameters:
  dataList - Additional data




Method Detail
createNotificationFromXml
public static JmxNotification createNotificationFromXml(Document document)(Code)
Used as a factory to create an instance of this class from a xml document
Parameters:
  document - a dom4j document an instance of this class with the corresponding parameters



createNotificationFromXmlString
public static JmxNotification createNotificationFromXmlString(String xml) throws Exception(Code)
Parse the given xml to create a notification
Parameters:
  xml - the xml to use to create a JmxNotificationinstance a JmxNotification instance which xml version is thatof the given xml arg
throws:
  Exception - if cannot create an instance (the xml is invalid)



getControllerJmxName
public String getControllerJmxName()(Code)
Return the controller jmx name IP:Port



getControllerName
public String getControllerName()(Code)
Returns the controllerName.



getDataList
public Hashtable getDataList()(Code)
Returns the dataList.



getDataValue
public String getDataValue(String key)(Code)
Returns the first value of an entry in the data list of values
Parameters:
  key - value of a data parameter in the list String value of the corresponding key



getDescription
public String getDescription()(Code)
Returns the description.



getMbeanClass
public String getMbeanClass()(Code)
Returns the mbeanClass.



getMbeanName
public String getMbeanName()(Code)
Returns the mbeanName.



getMbeanServerIP
public String getMbeanServerIP()(Code)
Returns the mbeanServerIP.



getMbeanServerPort
public String getMbeanServerPort()(Code)
Returns the mbeanServerPort.



getPriority
public String getPriority()(Code)
Returns the priority.



getSequence
public String getSequence()(Code)
Returns the sequence.



getTime
public String getTime()(Code)
Returns the time.



getType
public String getType()(Code)
Returns the type.



setControllerName
public void setControllerName(String controllerName)(Code)

Parameters:
  controllerName - The controllerName to set.



setDataList
public void setDataList(Hashtable dataList)(Code)

Parameters:
  dataList - The dataList to set.



setDescription
public void setDescription(String description)(Code)

Parameters:
  description - The description to set.



setMbeanClass
public void setMbeanClass(String mbeanClass)(Code)

Parameters:
  mbeanClass - The mbeanClass to set.



setMbeanName
public void setMbeanName(String mbeanName)(Code)

Parameters:
  mbeanName - The mbeanName to set.



setMbeanServerIP
public void setMbeanServerIP(String mbeanServerIP)(Code)

Parameters:
  mbeanServerIP - The mbeanServerIP to set.



setMbeanServerPort
public void setMbeanServerPort(String mbeanServerPort)(Code)

Parameters:
  mbeanServerPort - The mbeanServerPort to set.



setPriority
public void setPriority(String priority)(Code)

Parameters:
  priority - The priority to set.



setSequence
public void setSequence(String sequence)(Code)

Parameters:
  sequence - The sequence to set.



setTime
public void setTime(String time)(Code)

Parameters:
  time - The time to set.



setType
public void setType(String type)(Code)

Parameters:
  type - The type to set.



toString
public String toString()(Code)
String version in xml formatted text



toXmlDocument
public Document toXmlDocument()(Code)
Convert the object to the corresponding xml document instance Document object with the proper values



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.