Java Doc for MonitorNotification.java in  » JMX » jfoxmx » javax » management » monitor » 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 » JMX » jfoxmx » javax.management.monitor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.management.Notification
   javax.management.monitor.MonitorNotification

MonitorNotification
public class MonitorNotification extends Notification (Code)
Provides definitions of the notifications sent by monitor MBeans.

The notification source and a set of parameters concerning the monitor MBean's state need to be specified when creating a new object of this class. The list of notifications fired by the monitor MBeans is the following:

  • Common to all kind of monitors:
    • The observed object is not registered in the MBean server.
    • The observed attribute is not contained in the observed object.
    • The type of the observed attribute is not correct.
    • Any exception (except the cases described above) occurs when trying to get the value of the observed attribute.
  • Common to the counter and the gauge monitors:
    • The threshold high or threshold low are not of the same type as the gauge (gauge monitors).
    • The threshold or the offset or the modulus are not of the same type as the counter (counter monitors).
  • Counter monitors only:
    • The observed attribute has reached the threshold value.
  • Gauge monitors only:
    • The observed attribute has exceeded the threshold high value.
    • The observed attribute has exceeded the threshold low value.
  • String monitors only:
    • The observed attribute has matched the "string to compare" value.
    • The observed attribute has differed from the "string to compare" value.

author:
   Young Yang


Field Summary
final public static  StringOBSERVED_ATTRIBUTE_ERROR
     Notification type denoting that the observed attribute is not contained in the observed object.
final public static  StringOBSERVED_ATTRIBUTE_TYPE_ERROR
     Notification type denoting that the type of the observed attribute is not correct.
final public static  StringOBSERVED_OBJECT_ERROR
     Notification type denoting that the observed object is not registered in the MBean server.
final public static  StringRUNTIME_ERROR
     Notification type denoting that a non-predefined error type has occurred when trying to get the value of the observed attribute.
final public static  StringSTRING_TO_COMPARE_VALUE_DIFFERED
     Notification type denoting that the observed attribute has differed from the "string to compare" value.
final public static  StringSTRING_TO_COMPARE_VALUE_MATCHED
     Notification type denoting that the observed attribute has matched the "string to compare" value.
final public static  StringTHRESHOLD_ERROR
     Notification type denoting that the type of the thresholds, offset or modulus is not correct.
final public static  StringTHRESHOLD_HIGH_VALUE_EXCEEDED
     Notification type denoting that the observed attribute has exceeded the threshold high value.
final public static  StringTHRESHOLD_LOW_VALUE_EXCEEDED
     Notification type denoting that the observed attribute has exceeded the threshold low value.
final public static  StringTHRESHOLD_VALUE_EXCEEDED
     Notification type denoting that the observed attribute has reached the threshold value.

Constructor Summary
 MonitorNotification(String type, Object source, long sequenceNumber, long timeStamp, String message, ObjectName observedObjectName, String observedAttribute, Object derivedValue, Object trigger)
     Creates a monitor notification object.

Method Summary
public  ObjectgetDerivedGauge()
     Gets the derived gauge of this monitor notification.
public  StringgetObservedAttribute()
     Gets the observed attribute of this monitor notification.
public  ObjectNamegetObservedObject()
     Gets the observed object of this monitor notification.
public  ObjectgetTrigger()
     Gets the threshold/string (depending on the monitor type) that triggered off this monitor notification.

Field Detail
OBSERVED_ATTRIBUTE_ERROR
final public static String OBSERVED_ATTRIBUTE_ERROR(Code)
Notification type denoting that the observed attribute is not contained in the observed object. This notification is fired by all kinds of monitors.
The value of this notification type is jmx.monitor.error.attribute.



OBSERVED_ATTRIBUTE_TYPE_ERROR
final public static String OBSERVED_ATTRIBUTE_TYPE_ERROR(Code)
Notification type denoting that the type of the observed attribute is not correct. This notification is fired by all kinds of monitors.
The value of this notification type is jmx.monitor.error.type.



OBSERVED_OBJECT_ERROR
final public static String OBSERVED_OBJECT_ERROR(Code)
Notification type denoting that the observed object is not registered in the MBean server. This notification is fired by all kinds of monitors.
The value of this notification type is jmx.monitor.error.mbean.



RUNTIME_ERROR
final public static String RUNTIME_ERROR(Code)
Notification type denoting that a non-predefined error type has occurred when trying to get the value of the observed attribute. This notification is fired by all kinds of monitors.
The value of this notification type is jmx.monitor.error.runtime.



STRING_TO_COMPARE_VALUE_DIFFERED
final public static String STRING_TO_COMPARE_VALUE_DIFFERED(Code)
Notification type denoting that the observed attribute has differed from the "string to compare" value. This notification is only fired by string monitors.
The value of this notification type is jmx.monitor.string.differs.



STRING_TO_COMPARE_VALUE_MATCHED
final public static String STRING_TO_COMPARE_VALUE_MATCHED(Code)
Notification type denoting that the observed attribute has matched the "string to compare" value. This notification is only fired by string monitors.
The value of this notification type is jmx.monitor.string.matches.



THRESHOLD_ERROR
final public static String THRESHOLD_ERROR(Code)
Notification type denoting that the type of the thresholds, offset or modulus is not correct. This notification is fired by counter and gauge monitors.
The value of this notification type is jmx.monitor.error.threshold.



THRESHOLD_HIGH_VALUE_EXCEEDED
final public static String THRESHOLD_HIGH_VALUE_EXCEEDED(Code)
Notification type denoting that the observed attribute has exceeded the threshold high value. This notification is only fired by gauge monitors.
The value of this notification type is jmx.monitor.gauge.high.



THRESHOLD_LOW_VALUE_EXCEEDED
final public static String THRESHOLD_LOW_VALUE_EXCEEDED(Code)
Notification type denoting that the observed attribute has exceeded the threshold low value. This notification is only fired by gauge monitors.
The value of this notification type is jmx.monitor.gauge.low.



THRESHOLD_VALUE_EXCEEDED
final public static String THRESHOLD_VALUE_EXCEEDED(Code)
Notification type denoting that the observed attribute has reached the threshold value. This notification is only fired by counter monitors.
The value of this notification type is jmx.monitor.counter.threshold.




Constructor Detail
MonitorNotification
MonitorNotification(String type, Object source, long sequenceNumber, long timeStamp, String message, ObjectName observedObjectName, String observedAttribute, Object derivedValue, Object trigger)(Code)
Creates a monitor notification object.
Parameters:
  type - The notification type.
Parameters:
  source - The notification producer.
Parameters:
  sequenceNumber - The notification sequence number within the source object.
Parameters:
  timeStamp - The notification emission date.
Parameters:
  message - The notification message.
Parameters:
  observedObjectName - The object observed by the producer of this notification.
Parameters:
  observedAttribute - The attribute observed by the producer of this notification.
Parameters:
  derivedValue - The derived gauge.
Parameters:
  trigger - The threshold/string (depending on the monitor type) that triggered the notification.




Method Detail
getDerivedGauge
public Object getDerivedGauge()(Code)
Gets the derived gauge of this monitor notification. The derived gauge.



getObservedAttribute
public String getObservedAttribute()(Code)
Gets the observed attribute of this monitor notification. The observed attribute.



getObservedObject
public ObjectName getObservedObject()(Code)
Gets the observed object of this monitor notification. The observed object.



getTrigger
public Object getTrigger()(Code)
Gets the threshold/string (depending on the monitor type) that triggered off this monitor notification. The trigger.



Fields inherited from javax.management.Notification
protected Object source(Code)(Java Doc)

Methods inherited from javax.management.Notification
public String getMessage()(Code)(Java Doc)
public long getSequenceNumber()(Code)(Java Doc)
public Object getSource()(Code)(Java Doc)
public long getTimeStamp()(Code)(Java Doc)
public String getType()(Code)(Java Doc)
public Object getUserData()(Code)(Java Doc)
public void setSequenceNumber(long sequenceNumber)(Code)(Java Doc)
public void setSource(Object source) throws java.lang.IllegalArgumentException(Code)(Java Doc)
public void setTimeStamp(long timeStamp)(Code)(Java Doc)
public void setUserData(Object userData)(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.