javax.management.monitor
Class MonitorNotification

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject 
      extended by javax.management.Notification sample code for javax.management.Notification definition code for javax.management.Notification 
          extended by javax.management.monitor.MonitorNotification
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class MonitorNotification
extends Notification sample code for javax.management.Notification definition code for javax.management.Notification

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:

Since:
1.5
See Also:
Serialized Form

Field Summary
static String sample code for java.lang.String definition code for java.lang.String OBSERVED_ATTRIBUTE_ERROR sample code for javax.management.monitor.MonitorNotification.OBSERVED_ATTRIBUTE_ERROR definition code for javax.management.monitor.MonitorNotification.OBSERVED_ATTRIBUTE_ERROR
          Notification type denoting that the observed attribute is not contained in the observed object.
static String sample code for java.lang.String definition code for java.lang.String OBSERVED_ATTRIBUTE_TYPE_ERROR sample code for javax.management.monitor.MonitorNotification.OBSERVED_ATTRIBUTE_TYPE_ERROR definition code for javax.management.monitor.MonitorNotification.OBSERVED_ATTRIBUTE_TYPE_ERROR
          Notification type denoting that the type of the observed attribute is not correct.
static String sample code for java.lang.String definition code for java.lang.String OBSERVED_OBJECT_ERROR sample code for javax.management.monitor.MonitorNotification.OBSERVED_OBJECT_ERROR definition code for javax.management.monitor.MonitorNotification.OBSERVED_OBJECT_ERROR
          Notification type denoting that the observed object is not registered in the MBean server.
static String sample code for java.lang.String definition code for java.lang.String RUNTIME_ERROR sample code for javax.management.monitor.MonitorNotification.RUNTIME_ERROR definition code for javax.management.monitor.MonitorNotification.RUNTIME_ERROR
          Notification type denoting that a non-predefined error type has occurred when trying to get the value of the observed attribute.
static String sample code for java.lang.String definition code for java.lang.String STRING_TO_COMPARE_VALUE_DIFFERED sample code for javax.management.monitor.MonitorNotification.STRING_TO_COMPARE_VALUE_DIFFERED definition code for javax.management.monitor.MonitorNotification.STRING_TO_COMPARE_VALUE_DIFFERED
          Notification type denoting that the observed attribute has differed from the "string to compare" value.
static String sample code for java.lang.String definition code for java.lang.String STRING_TO_COMPARE_VALUE_MATCHED sample code for javax.management.monitor.MonitorNotification.STRING_TO_COMPARE_VALUE_MATCHED definition code for javax.management.monitor.MonitorNotification.STRING_TO_COMPARE_VALUE_MATCHED
          Notification type denoting that the observed attribute has matched the "string to compare" value.
static String sample code for java.lang.String definition code for java.lang.String THRESHOLD_ERROR sample code for javax.management.monitor.MonitorNotification.THRESHOLD_ERROR definition code for javax.management.monitor.MonitorNotification.THRESHOLD_ERROR
          Notification type denoting that the type of the thresholds, offset or modulus is not correct.
static String sample code for java.lang.String definition code for java.lang.String THRESHOLD_HIGH_VALUE_EXCEEDED sample code for javax.management.monitor.MonitorNotification.THRESHOLD_HIGH_VALUE_EXCEEDED definition code for javax.management.monitor.MonitorNotification.THRESHOLD_HIGH_VALUE_EXCEEDED
          Notification type denoting that the observed attribute has exceeded the threshold high value.
static String sample code for java.lang.String definition code for java.lang.String THRESHOLD_LOW_VALUE_EXCEEDED sample code for javax.management.monitor.MonitorNotification.THRESHOLD_LOW_VALUE_EXCEEDED definition code for javax.management.monitor.MonitorNotification.THRESHOLD_LOW_VALUE_EXCEEDED
          Notification type denoting that the observed attribute has exceeded the threshold low value.
static String sample code for java.lang.String definition code for java.lang.String THRESHOLD_VALUE_EXCEEDED sample code for javax.management.monitor.MonitorNotification.THRESHOLD_VALUE_EXCEEDED definition code for javax.management.monitor.MonitorNotification.THRESHOLD_VALUE_EXCEEDED
          Notification type denoting that the observed attribute has reached the threshold value.
 
Fields inherited from class javax.management.Notification sample code for javax.management.Notification definition code for javax.management.Notification
source sample code for javax.management.Notification.source definition code for javax.management.Notification.source
 
Method Summary
 Object sample code for java.lang.Object definition code for java.lang.Object getDerivedGauge sample code for javax.management.monitor.MonitorNotification.getDerivedGauge() definition code for javax.management.monitor.MonitorNotification.getDerivedGauge() ()
          Gets the derived gauge of this monitor notification.
 String sample code for java.lang.String definition code for java.lang.String getObservedAttribute sample code for javax.management.monitor.MonitorNotification.getObservedAttribute() definition code for javax.management.monitor.MonitorNotification.getObservedAttribute() ()
          Gets the observed attribute of this monitor notification.
 ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName getObservedObject sample code for javax.management.monitor.MonitorNotification.getObservedObject() definition code for javax.management.monitor.MonitorNotification.getObservedObject() ()
          Gets the observed object of this monitor notification.
 Object sample code for java.lang.Object definition code for java.lang.Object getTrigger sample code for javax.management.monitor.MonitorNotification.getTrigger() definition code for javax.management.monitor.MonitorNotification.getTrigger() ()
          Gets the threshold/string (depending on the monitor type) that triggered off this monitor notification.
 
Methods inherited from class javax.management.Notification sample code for javax.management.Notification definition code for javax.management.Notification
getMessage sample code for javax.management.Notification.getMessage() definition code for javax.management.Notification.getMessage() , getSequenceNumber sample code for javax.management.Notification.getSequenceNumber() definition code for javax.management.Notification.getSequenceNumber() , getTimeStamp sample code for javax.management.Notification.getTimeStamp() definition code for javax.management.Notification.getTimeStamp() , getType sample code for javax.management.Notification.getType() definition code for javax.management.Notification.getType() , getUserData sample code for javax.management.Notification.getUserData() definition code for javax.management.Notification.getUserData() , setSequenceNumber sample code for javax.management.Notification.setSequenceNumber(long) definition code for javax.management.Notification.setSequenceNumber(long) , setSource sample code for javax.management.Notification.setSource(java.lang.Object) definition code for javax.management.Notification.setSource(java.lang.Object) , setTimeStamp sample code for javax.management.Notification.setTimeStamp(long) definition code for javax.management.Notification.setTimeStamp(long) , setUserData sample code for javax.management.Notification.setUserData(java.lang.Object) definition code for javax.management.Notification.setUserData(java.lang.Object) , toString sample code for javax.management.Notification.toString() definition code for javax.management.Notification.toString()
 
Methods inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
getSource sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

OBSERVED_OBJECT_ERROR sample code for javax.management.monitor.MonitorNotification.OBSERVED_OBJECT_ERROR

public static final String sample code for java.lang.String definition code for java.lang.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.
The value of this notification type is jmx.monitor.error.mbean.

See Also:
Constant Field Values

OBSERVED_ATTRIBUTE_ERROR sample code for javax.management.monitor.MonitorNotification.OBSERVED_ATTRIBUTE_ERROR

public static final String sample code for java.lang.String definition code for java.lang.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.
The value of this notification type is jmx.monitor.error.attribute.

See Also:
Constant Field Values

OBSERVED_ATTRIBUTE_TYPE_ERROR sample code for javax.management.monitor.MonitorNotification.OBSERVED_ATTRIBUTE_TYPE_ERROR

public static final String sample code for java.lang.String definition code for java.lang.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.
The value of this notification type is jmx.monitor.error.type.

See Also:
Constant Field Values

THRESHOLD_ERROR sample code for javax.management.monitor.MonitorNotification.THRESHOLD_ERROR

public static final String sample code for java.lang.String definition code for java.lang.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.
The value of this notification type is jmx.monitor.error.threshold.

See Also:
Constant Field Values

RUNTIME_ERROR sample code for javax.management.monitor.MonitorNotification.RUNTIME_ERROR

public static final String sample code for java.lang.String definition code for java.lang.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.
The value of this notification type is jmx.monitor.error.runtime.

See Also:
Constant Field Values

THRESHOLD_VALUE_EXCEEDED sample code for javax.management.monitor.MonitorNotification.THRESHOLD_VALUE_EXCEEDED

public static final String sample code for java.lang.String definition code for java.lang.String  THRESHOLD_VALUE_EXCEEDED
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.

See Also:
Constant Field Values

THRESHOLD_HIGH_VALUE_EXCEEDED sample code for javax.management.monitor.MonitorNotification.THRESHOLD_HIGH_VALUE_EXCEEDED

public static final String sample code for java.lang.String definition code for java.lang.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.
The value of this notification type is jmx.monitor.gauge.high.

See Also:
Constant Field Values

THRESHOLD_LOW_VALUE_EXCEEDED sample code for javax.management.monitor.MonitorNotification.THRESHOLD_LOW_VALUE_EXCEEDED

public static final String sample code for java.lang.String definition code for java.lang.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.
The value of this notification type is jmx.monitor.gauge.low.

See Also:
Constant Field Values

STRING_TO_COMPARE_VALUE_MATCHED sample code for javax.management.monitor.MonitorNotification.STRING_TO_COMPARE_VALUE_MATCHED

public static final String sample code for java.lang.String definition code for java.lang.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.
The value of this notification type is jmx.monitor.string.matches.

See Also:
Constant Field Values

STRING_TO_COMPARE_VALUE_DIFFERED sample code for javax.management.monitor.MonitorNotification.STRING_TO_COMPARE_VALUE_DIFFERED

public static final String sample code for java.lang.String definition code for java.lang.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.
The value of this notification type is jmx.monitor.string.differs.

See Also:
Constant Field Values
Method Detail

getObservedObject sample code for javax.management.monitor.MonitorNotification.getObservedObject() definition code for javax.management.monitor.MonitorNotification.getObservedObject()

public ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  getObservedObject()
Gets the observed object of this monitor notification.

Returns:
The observed object.

getObservedAttribute sample code for javax.management.monitor.MonitorNotification.getObservedAttribute() definition code for javax.management.monitor.MonitorNotification.getObservedAttribute()

public String sample code for java.lang.String definition code for java.lang.String  getObservedAttribute()
Gets the observed attribute of this monitor notification.

Returns:
The observed attribute.

getDerivedGauge sample code for javax.management.monitor.MonitorNotification.getDerivedGauge() definition code for javax.management.monitor.MonitorNotification.getDerivedGauge()

public Object sample code for java.lang.Object definition code for java.lang.Object  getDerivedGauge()
Gets the derived gauge of this monitor notification.

Returns:
The derived gauge.

getTrigger sample code for javax.management.monitor.MonitorNotification.getTrigger() definition code for javax.management.monitor.MonitorNotification.getTrigger()

public Object sample code for java.lang.Object definition code for java.lang.Object  getTrigger()
Gets the threshold/string (depending on the monitor type) that triggered off this monitor notification.

Returns:
The trigger.