public class AlertHandler extends Object implements AlertService
| Constructor and Description |
|---|
AlertHandler(LsstAlertPlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AlertListener listener)
Adds a listener that will be notified of any future raised or cleared alerts.
|
org.lsst.ccs.bus.data.RaisedAlertSummary |
getSummary(String source)
Returns a summary of alerts from the specified source currently known to this
AlertService. |
void |
removeListener(AlertListener listener)
Removes an alert listener.
|
void |
submitAlert(String source,
org.lsst.ccs.bus.data.Alert alert,
org.lsst.ccs.bus.states.AlertState level,
String cause)
Submits a locally generated alert for processing.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHistorypublic AlertHandler(LsstAlertPlugin plugin)
public void submitAlert(String source, org.lsst.ccs.bus.data.Alert alert, org.lsst.ccs.bus.states.AlertState level, String cause)
AlertService
Note that AlertService implementation is responsible for processing alerts published on the buses.
submitAlert in interface AlertServicesource - Source of alert (typically the name of the subsystem).alert - Alert instance.level - Level at which the alert has been raised.cause - Information string describing the alert being raised.public void addListener(AlertListener listener)
AlertServiceaddListener in interface AlertServicelistener - Listener to be registered.public void removeListener(AlertListener listener)
AlertServiceremoveListener in interface AlertServicelistener - Listener to be removed.public org.lsst.ccs.bus.data.RaisedAlertSummary getSummary(String source)
AlertServiceAlertService.getSummary in interface AlertServicesource - Alerts source (typically the name of the subsystem).Copyright © 2018 LSST. All rights reserved.