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:
- Common to all kind of monitors:
- Granularity period is negative or zero.
- Observed object is not registered in the CMF.
- Observed property is not contained in the observed object.
- Type of observed property is not correct.
- Counter monitors only:
- Comparison level is negative.
- Offset value is negative.
- Modulus value is negative.
- Observed property has reached the threshold value.
- Gauge monitors only:
- Threshold high and threshold low are not of the same type.
- Threshold high value is less than threshold low value.
- Observed property has exceeded the threshold high value.
- Observed property has exceeded the threshold low value.
-
COMPARISON_LEVEL_EVT
- Event denoting that the comparison level is negative.
-
GRANULARITY_PERIOD_EVT
- Event denoting that the granularity period is negative or zero.
-
MODULUS_VALUE_EVT
- Event denoting that the modulus value is negative.
-
OBSERVED_OBJECT_EVT
- Event denoting that the observed object is not registered in the CMF.
-
OBSERVED_PROPERTY_EVT
- Event denoting that the observed property is not contained in the observed object.
-
OBSERVED_PROPERTY_TYPE_EVT
- Event denoting that the type of the observed property is not correct.
-
OFFSET_VALUE_EVT
- Event denoting that the offset value is negative.
-
THRESHIGH_LOWER_THAN_THRESLOW_EVT
- Event denoting that threshold high value is less than threshold low value.
-
THRESHOLD_HIGH_VALUE_EXCEEDED_EVT
- Event denoting that the observed property has exceeded the threshold high value.
-
THRESHOLD_LOW_VALUE_EXCEEDED_EVT
- Event denoting that the observed property has exceeded the threshold low value.
-
THRESHOLD_TYPE_EVT
- Event denoting that threshold high and threshold low are not of the same type.
-
THRESHOLD_VALUE_REACHED_EVT
- Event denoting that the observed property has reached the threshold value.
-
MonitorEvent(Monitor, Integer, String, Object, String, Number)
- Create a monitor event object.
-
getMonitorEventDerivedGauge()
- Get derived gauge present in monitor event.
-
getMonitorEventMessage()
- Get message present in monitor event.
-
getMonitorEventObservedObject()
- Get observed object present in monitor event.
-
getMonitorEventObservedProperty()
- Get observed property present in monitor event.
-
getMonitorEventType()
- Get event type present in monitor event.
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.
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.
getMonitorEventType
public Integer getMonitorEventType()
- Get event type present in monitor event.
getMonitorEventMessage
public String getMonitorEventMessage()
- Get message present in monitor event.
getMonitorEventObservedObject
public Object getMonitorEventObservedObject()
- Get observed object present in monitor event.
getMonitorEventObservedProperty
public String getMonitorEventObservedProperty()
- Get observed property present in monitor event.
getMonitorEventDerivedGauge
public Number getMonitorEventDerivedGauge()
- Get derived gauge present in monitor event.
All Packages Class Hierarchy This Package Previous Next Index