|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.sun.jaw.impl.agent.services.monitor.MonitorEvent
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:
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 |
public static final int GRANULARITY_PERIOD_EVT
This event is fired by all kind of monitors.
public static final int OBSERVED_OBJECT_EVT
This event is fired by all kind of monitors.
public static final int OBSERVED_PROPERTY_EVT
This event is fired by all kind of monitors.
public static final int OBSERVED_PROPERTY_TYPE_EVT
This event is fired by all kind of monitors.
public static final int COMPARISON_LEVEL_EVT
This event is only fired by counter monitors.
public static final int OFFSET_VALUE_EVT
This event is only fired by counter monitors.
public static final int MODULUS_VALUE_EVT
This event is only fired by counter monitors.
public static final int THRESHOLD_VALUE_REACHED_EVT
This event is only fired by counter monitors.
public static final int THRESHOLD_TYPE_EVT
This event is only fired by gauge monitors.
public static final int THRESHIGH_LOWER_THAN_THRESLOW_EVT
This event is only fired by gauge monitors.
public static final int THRESHOLD_HIGH_VALUE_EXCEEDED_EVT
This event is only fired by gauge monitors.
public static final int THRESHOLD_LOW_VALUE_EXCEEDED_EVT
This event is only fired by gauge monitors.
Constructor Detail |
public MonitorEvent(Monitor source, java.lang.Integer eventType, java.lang.String eventMessage, java.lang.Object eventObservedObject, java.lang.String eventObservedProperty, java.lang.Number eventDerivedGauge)
source
- The event producer.eventMessage
- The message sent by the producer of this event
to all the listeners registered for this event.Method Detail |
public java.lang.Integer getMonitorEventType()
public java.lang.String getMonitorEventMessage()
public java.lang.Object getMonitorEventObservedObject()
public java.lang.String getMonitorEventObservedProperty()
public java.lang.Number getMonitorEventDerivedGauge()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |