All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

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

public class MonitorEvent
extends 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:


Variable Index

 o COMPARISON_LEVEL_EVT
Event denoting that the comparison level is negative.
 o GRANULARITY_PERIOD_EVT
Event denoting that the granularity period is negative or zero.
 o MODULUS_VALUE_EVT
Event denoting that the modulus value is negative.
 o OBSERVED_OBJECT_EVT
Event denoting that the observed object is not registered in the CMF.
 o OBSERVED_PROPERTY_EVT
Event denoting that the observed property is not contained in the observed object.
 o OBSERVED_PROPERTY_TYPE_EVT
Event denoting that the type of the observed property is not correct.
 o OFFSET_VALUE_EVT
Event denoting that the offset value is negative.
 o THRESHIGH_LOWER_THAN_THRESLOW_EVT
Event denoting that threshold high value is less than threshold low value.
 o THRESHOLD_HIGH_VALUE_EXCEEDED_EVT
Event denoting that the observed property has exceeded the threshold high value.
 o THRESHOLD_LOW_VALUE_EXCEEDED_EVT
Event denoting that the observed property has exceeded the threshold low value.
 o THRESHOLD_TYPE_EVT
Event denoting that threshold high and threshold low are not of the same type.
 o THRESHOLD_VALUE_REACHED_EVT
Event denoting that the observed property has reached the threshold value.

Constructor Index

 o MonitorEvent(Monitor, Integer, String, Object, String, Number)
Create a monitor event object.

Method Index

 o getMonitorEventDerivedGauge()
Get derived gauge present in monitor event.
 o getMonitorEventMessage()
Get message present in monitor event.
 o getMonitorEventObservedObject()
Get observed object present in monitor event.
 o getMonitorEventObservedProperty()
Get observed property present in monitor event.
 o getMonitorEventType()
Get event type present in monitor event.

Variables

 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

Constructors

 o MonitorEvent
 public MonitorEvent(Monitor source,
                     Integer eventType,
                     String eventMessage,
                     Object eventObservedObject,
                     String eventObservedProperty,
                     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.

Methods

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

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

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

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

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index