public class AlertGate extends Object
| Constructor and Description |
|---|
AlertGate(Dispatcher dispatcher,
String alertID,
String alertDescription,
int[] thresholds)
Creates an instance with
vetoTime = 5000 and vetoFactor = 1.5. |
AlertGate(Dispatcher dispatcher,
String alertID,
String alertDescription,
int[] thresholds,
int vetoTime,
double vetoFactor)
Constructs an instance, registering new
Alert with the Dispatcher. |
| Modifier and Type | Method and Description |
|---|---|
void |
check(int value)
Checks the value and takes appropriate action.
|
protected String |
getMessage(int value) |
public AlertGate(Dispatcher dispatcher, String alertID, String alertDescription, int[] thresholds, int vetoTime, double vetoFactor)
Alert with the Dispatcher.dispatcher - Dispatcher through which alerts should be raised and messages logged.alertID - ID for Alert raised through this gate.alertDescription - Description of the Alert.thresholds - Array of thresholds. Contains no more than 3 elements: log, warning, alarm.vetoTime - Veto time in milliseconds.vetoFactor - Veto factor.public AlertGate(Dispatcher dispatcher, String alertID, String alertDescription, int[] thresholds)
vetoTime = 5000 and vetoFactor = 1.5.
The new Alert is registered with the Dispatcher.dispatcher - Dispatcher through which alerts should be raised and messages logged.alertID - ID for Alert raised through this gate.alertDescription - Description of the Alert.thresholds - Array of thresholds.public void check(int value)
value - Current value of the watched quantity.protected String getMessage(int value)
Copyright © 2022 LSST. All rights reserved.