com.sun.jaw.impl.agent.services.monitor
Class MonitorEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.sun.jaw.impl.agent.services.monitor.MonitorEvent

public class MonitorEvent
extends java.util.EventObject

This class provides a simple implementation of a monitor event.

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

See Also:
Serialized Form

Field Summary
static int COMPARISON_LEVEL_EVT
          Event denoting that the comparison level is negative.
static int GRANULARITY_PERIOD_EVT
          Event denoting that the granularity period is negative or zero.
static int MODULUS_VALUE_EVT
          Event denoting that the modulus value is negative.
static int OBSERVED_OBJECT_EVT
          Event denoting that the observed object is not registered in the CMF.
static int OBSERVED_PROPERTY_EVT
          Event denoting that the observed property is not contained in the observed object.
static int OBSERVED_PROPERTY_TYPE_EVT
          Event denoting that the type of the observed property is not correct.
static int OFFSET_VALUE_EVT
          Event denoting that the offset value is negative.
static int THRESHIGH_LOWER_THAN_THRESLOW_EVT
          Event denoting that threshold high value is less than threshold low value.
static int THRESHOLD_HIGH_VALUE_EXCEEDED_EVT
          Event denoting that the observed property has exceeded the threshold high value.
static int THRESHOLD_LOW_VALUE_EXCEEDED_EVT
          Event denoting that the observed property has exceeded the threshold low value.
static int THRESHOLD_TYPE_EVT
          Event denoting that threshold high and threshold low are not of the same type.
static int THRESHOLD_VALUE_REACHED_EVT
          Event denoting that the observed property has reached the threshold value.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MonitorEvent(Monitor source, java.lang.Integer eventType, java.lang.String eventMessage, java.lang.Object eventObservedObject, java.lang.String eventObservedProperty, java.lang.Number eventDerivedGauge)
          Create a monitor event object.
 
Method Summary
 java.lang.Number getMonitorEventDerivedGauge()
          Get derived gauge present in monitor event.
 java.lang.String getMonitorEventMessage()
          Get message present in monitor event.
 java.lang.Object getMonitorEventObservedObject()
          Get observed object present in monitor event.
 java.lang.String getMonitorEventObservedProperty()
          Get observed property present in monitor event.
 java.lang.Integer getMonitorEventType()
          Get event type present in monitor event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GRANULARITY_PERIOD_EVT

public static final int GRANULARITY_PERIOD_EVT
Event denoting that the granularity period is negative or zero.

This event is fired by all kind of monitors.


OBSERVED_OBJECT_EVT

public static final int OBSERVED_OBJECT_EVT
Event denoting that the observed object is not registered in the CMF.

This event is fired by all kind of monitors.


OBSERVED_PROPERTY_EVT

public static final int OBSERVED_PROPERTY_EVT
Event denoting that the observed property is not contained in the observed object.

This event is fired by all kind of monitors.


OBSERVED_PROPERTY_TYPE_EVT

public static final int OBSERVED_PROPERTY_TYPE_EVT
Event denoting that the type of the observed property is not correct.

This event is fired by all kind of monitors.


COMPARISON_LEVEL_EVT

public static final int COMPARISON_LEVEL_EVT
Event denoting that the comparison level is negative.

This event is only fired by counter monitors.


OFFSET_VALUE_EVT

public static final int OFFSET_VALUE_EVT
Event denoting that the offset value is negative.

This event is only fired by counter monitors.


MODULUS_VALUE_EVT

public static final int MODULUS_VALUE_EVT
Event denoting that the modulus value is negative.

This event is only fired by counter monitors.


THRESHOLD_VALUE_REACHED_EVT

public static final int THRESHOLD_VALUE_REACHED_EVT
Event denoting that the observed property has reached the threshold value.

This event is only fired by counter monitors.


THRESHOLD_TYPE_EVT

public static final int THRESHOLD_TYPE_EVT
Event denoting that threshold high and threshold low are not of the same type.

This event is only fired by gauge monitors.


THRESHIGH_LOWER_THAN_THRESLOW_EVT

public static final int THRESHIGH_LOWER_THAN_THRESLOW_EVT
Event denoting that threshold high value is less than threshold low value.

This event is only fired by gauge monitors.


THRESHOLD_HIGH_VALUE_EXCEEDED_EVT

public static final int THRESHOLD_HIGH_VALUE_EXCEEDED_EVT
Event denoting that the observed property has exceeded the threshold high value.

This event is only fired by gauge monitors.


THRESHOLD_LOW_VALUE_EXCEEDED_EVT

public static final int THRESHOLD_LOW_VALUE_EXCEEDED_EVT
Event denoting that the observed property has exceeded the threshold low value.

This event is only fired by gauge monitors.

Constructor Detail

MonitorEvent

public MonitorEvent(Monitor source,
                    java.lang.Integer eventType,
                    java.lang.String eventMessage,
                    java.lang.Object eventObservedObject,
                    java.lang.String eventObservedProperty,
                    java.lang.Number eventDerivedGauge)
Create a monitor event object.
Parameters:
source - The event producer.
eventMessage - The message sent by the producer of this event to all the listeners registered for this event.
Method Detail

getMonitorEventType

public java.lang.Integer getMonitorEventType()
Get event type present in monitor event.

getMonitorEventMessage

public java.lang.String getMonitorEventMessage()
Get message present in monitor event.

getMonitorEventObservedObject

public java.lang.Object getMonitorEventObservedObject()
Get observed object present in monitor event.

getMonitorEventObservedProperty

public java.lang.String getMonitorEventObservedProperty()
Get observed property present in monitor event.

getMonitorEventDerivedGauge

public java.lang.Number getMonitorEventDerivedGauge()
Get derived gauge present in monitor event.