public interface AlertService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AlertListener listener)
Adds a listener that will be notified of any future raised or cleared alerts.
|
default org.lsst.ccs.bus.data.RaisedAlertHistory |
getHistory(String source,
String alertID)
Returns the history for the specified alert ID.
|
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)
Submits a locally generated alert for processing.
|
void submitAlert(String source, org.lsst.ccs.bus.data.Alert alert, org.lsst.ccs.bus.states.AlertState level)
AlertService
implementation is responsible for processing alerts published on the buses.source - Source of alert (typically the name of the subsystem).alert - Alert instance.level - Level at which the alert has been raised.void addListener(AlertListener listener)
listener - Listener to be registered.void removeListener(AlertListener listener)
listener - Listener to be removed.org.lsst.ccs.bus.data.RaisedAlertSummary getSummary(String source)
AlertService.source - Alerts source (typically the name of the subsystem).Copyright © 2016 LSST. All rights reserved.