All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

java.lang.Object
   |
   +----com.sun.jaw.impl.agent.services.monitor.Monitor
           |
           +----com.sun.jaw.impl.agent.services.monitor.GaugeMonitor

public class GaugeMonitor
extends Monitor
implements AlarmClockListener, Serializable
This class provides a simple implementation of a gauge monitor.

A gauge monitor is a monitor which observes an attribute which behaves as a gauge. A hysteresis mechanism is provided to avoid the repeated triggering of event notifications when the gauge makes small oscillations around the threshold value. This capability is provided by specifying threshold values in pairs; one being a high threshold value and the other being a low threshold value. The difference between threshold values is the hysteresis interval.

The gauge monitor has the following structure:

The gauge monitor has the following constraints: The gauge monitor has the following behaviour: If the gauge difference option is used, then the value of the derived gauge is calculated as the difference between the observed gauge values for two successive observations.

The derived gauge value (V[t]) is initially calculated using the following equation:

This implementation of the gauge monitor requires the observed property to be either of type Integer or Float.

See Also:
Monitor, CounterMonitor

Constructor Index

 o GaugeMonitor()

Method Index

 o getGaugeDifferenceOnOff()
Returns the gauge difference on/off flag.
 o getNotifyHighOnOff()
Returns the notify high on/off switch value.
 o getNotifyLowOnOff()
Returns the notify low on/off switch value.
 o getPreviousScanGauge()
Returns the previous scan gauge.
 o getPreviousScanGaugeInitialisedOnOff()
Returns the previous scan gauge procedural status.
 o getThresholdHighValue()
Returns the threshold high value.
 o getThresholdLowValue()
Returns the threshold low value.
 o handleAlarmClock(AlarmClockEvent)
This handle will be called each time the alarm-clock has exceeded its timeout.
 o performStart()
Activates the GaugeMonitor service.
 o performStop()
Deactivates the GaugeMonitor service.
 o setGaugeDifferenceOnOff(Boolean)
Sets the gauge difference on/off flag.
 o setNotifyHighOnOff(Boolean)
Sets the notify high on/off switch value.
 o setNotifyLowOnOff(Boolean)
Sets the notify low on/off switch value.
 o setThresholdHighValue(Number)
Sets the threshold high value.
 o setThresholdLowValue(Number)
Sets the threshold low value.

Constructors

 o GaugeMonitor
 public GaugeMonitor()

Methods

 o handleAlarmClock
 public void handleAlarmClock(AlarmClockEvent e)
This handle will be called each time the alarm-clock has exceeded its timeout.

Overrides:
handleAlarmClock in class Monitor
 o getThresholdHighValue
 public Number getThresholdHighValue()
Returns the threshold high value.

 o setThresholdHighValue
 public void setThresholdHighValue(Number value)
Sets the threshold high value.

 o getThresholdLowValue
 public Number getThresholdLowValue()
Returns the threshold low value.

 o setThresholdLowValue
 public void setThresholdLowValue(Number value)
Sets the threshold low value.

 o getNotifyHighOnOff
 public Boolean getNotifyHighOnOff()
Returns the notify high on/off switch value.

 o setNotifyHighOnOff
 public void setNotifyHighOnOff(Boolean value)
Sets the notify high on/off switch value.

 o getNotifyLowOnOff
 public Boolean getNotifyLowOnOff()
Returns the notify low on/off switch value.

 o setNotifyLowOnOff
 public void setNotifyLowOnOff(Boolean value)
Sets the notify low on/off switch value.

 o getGaugeDifferenceOnOff
 public Boolean getGaugeDifferenceOnOff()
Returns the gauge difference on/off flag.

 o setGaugeDifferenceOnOff
 public void setGaugeDifferenceOnOff(Boolean value)
Sets the gauge difference on/off flag.

 o getPreviousScanGauge
 public Number getPreviousScanGauge()
Returns the previous scan gauge.

 o getPreviousScanGaugeInitialisedOnOff
 public Boolean getPreviousScanGaugeInitialisedOnOff()
Returns the previous scan gauge procedural status.

 o performStart
 public synchronized void performStart()
Activates the GaugeMonitor service.

Overrides:
performStart in class Monitor
 o performStop
 public synchronized void performStop()
Deactivates the GaugeMonitor service.

Overrides:
performStop in class Monitor

All Packages  Class Hierarchy  This Package  Previous  Next  Index