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:
Modifier and Type | Field and Description |
---|---|
private Object | |
public static final String | OBSERVED_ATTRIBUTE_ERROR
Notification type denoting that the observed attribute is not contained in the observed object. |
public static final String | OBSERVED_ATTRIBUTE_TYPE_ERROR
Notification type denoting that the type of the observed attribute is not correct. |
public static final String | OBSERVED_OBJECT_ERROR
Notification type denoting that the observed object is not registered in the MBean server. |
private String | |
private ObjectName | |
public static final String | RUNTIME_ERROR
Notification type denoting that a non-predefined error type has occurred when trying to get the value of the observed attribute. |
private static final long | |
public static final String | STRING_TO_COMPARE_VALUE_DIFFERED
Notification type denoting that the observed attribute has differed from the "string to compare" value. |
public static final String | STRING_TO_COMPARE_VALUE_MATCHED
Notification type denoting that the observed attribute has matched the "string to compare" value. |
public static final String | THRESHOLD_ERROR
Notification type denoting that the type of the thresholds, offset or modulus is not correct. |
public static final String | THRESHOLD_HIGH_VALUE_EXCEEDED
Notification type denoting that the observed attribute has exceeded the threshold high value. |
public static final String | THRESHOLD_LOW_VALUE_EXCEEDED
Notification type denoting that the observed attribute has exceeded the threshold low value. |
public static final String | THRESHOLD_VALUE_EXCEEDED
Notification type denoting that the observed attribute has reached the threshold value. |
private Object |
Access | Constructor and Description |
---|---|
pack-priv | MonitorNotification(String
The notification type. type, Object The notification producer. source, long The notification sequence number within the source object. sequenceNumber, long The notification emission date. timeStamp, String The notification message. msg, ObjectName The object observed by the producer of this notification. obsObj, String The attribute observed by the producer of this notification. obsAtt, Object The derived gauge. derGauge, Object The threshold/string (depending on the monitor type) that triggered the notification. trigger)Creates a monitor notification object. |
Modifier and Type | Method and Description |
---|---|
public Object | |
public String | Returns: The observed attribute.Gets the observed attribute of this monitor notification. |
public ObjectName | Returns: The observed object.Gets the observed object of this monitor notification. |
public Object | Returns: The trigger.Gets the threshold/string (depending on the monitor type) that triggered off this monitor notification. |
derivedGauge | back to summary |
---|---|
private Object derivedGauge
|
OBSERVED_ATTRIBUTE_ERROR | back to summary |
---|---|
public static final String OBSERVED_ATTRIBUTE_ERROR Notification type denoting that the observed attribute is not contained in the observed object.
This notification is fired by all kinds of monitors.
|
OBSERVED_ATTRIBUTE_TYPE_ERROR | back to summary |
---|---|
public static final String OBSERVED_ATTRIBUTE_TYPE_ERROR Notification type denoting that the type of the observed attribute is not correct.
This notification is fired by all kinds of monitors.
|
OBSERVED_OBJECT_ERROR | back to summary |
---|---|
public static final String OBSERVED_OBJECT_ERROR Notification type denoting that the observed object is not registered in the MBean server.
This notification is fired by all kinds of monitors.
|
observedAttribute | back to summary |
---|---|
private String observedAttribute |
observedObject | back to summary |
---|---|
private ObjectName observedObject
|
RUNTIME_ERROR | back to summary |
---|---|
public static final String RUNTIME_ERROR 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.
|
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
STRING_TO_COMPARE_VALUE_DIFFERED | back to summary |
---|---|
public static final String STRING_TO_COMPARE_VALUE_DIFFERED Notification type denoting that the observed attribute has differed from the "string to compare" value.
This notification is only fired by string monitors.
|
STRING_TO_COMPARE_VALUE_MATCHED | back to summary |
---|---|
public static final String STRING_TO_COMPARE_VALUE_MATCHED Notification type denoting that the observed attribute has matched the "string to compare" value.
This notification is only fired by string monitors.
|
THRESHOLD_ERROR | back to summary |
---|---|
public static final String THRESHOLD_ERROR Notification type denoting that the type of the thresholds, offset or modulus is not correct.
This notification is fired by counter and gauge monitors.
|
THRESHOLD_HIGH_VALUE_EXCEEDED | back to summary |
---|---|
public static final String THRESHOLD_HIGH_VALUE_EXCEEDED Notification type denoting that the observed attribute has exceeded the threshold high value.
This notification is only fired by gauge monitors.
|
THRESHOLD_LOW_VALUE_EXCEEDED | back to summary |
---|---|
public static final String THRESHOLD_LOW_VALUE_EXCEEDED Notification type denoting that the observed attribute has exceeded the threshold low value.
This notification is only fired by gauge monitors.
|
THRESHOLD_VALUE_EXCEEDED | back to summary |
---|---|
public static final String THRESHOLD_VALUE_EXCEEDED Notification type denoting that the observed attribute has reached the threshold value.
This notification is only fired by counter monitors.
|
trigger | back to summary |
---|---|
private Object trigger
|
MonitorNotification | back to summary |
---|---|
pack-priv MonitorNotification(String type, Object source, long sequenceNumber, long timeStamp, String msg, ObjectName obsObj, String obsAtt, Object derGauge, Object trigger) Creates a monitor notification object.
|
getDerivedGauge | back to summary |
---|---|
public Object getDerivedGauge() Gets the derived gauge of this monitor notification.
|
getObservedAttribute | back to summary |
---|---|
public String getObservedAttribute() Gets the observed attribute of this monitor notification.
|
getObservedObject | back to summary |
---|---|
public ObjectName getObservedObject() Gets the observed object of this monitor notification.
|
getTrigger | back to summary |
---|---|
public Object getTrigger() Gets the threshold/string (depending on the monitor type) that triggered off this monitor notification.
|