public class AlertEvent extends EventObject
AlertService to notify listeners of raised or cleared alerts.source| Constructor and Description |
|---|
AlertEvent(String source,
org.lsst.ccs.bus.data.Alert alert,
org.lsst.ccs.bus.data.RaisedAlertSummary summary)
Constructor for events triggered by a raised alert.
|
AlertEvent(String source,
String[] clearedIDs,
org.lsst.ccs.bus.data.RaisedAlertSummary summary)
Constructor for events triggered by cleared alerts.
|
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.bus.data.Alert |
getAlert()
Returns the
Alert that triggered this event. |
List<String> |
getClearedIds()
Returns the list of cleared IDs.
|
org.lsst.ccs.bus.states.AlertState |
getLevel()
Returns the level (
WARNING or ALARM) at which the alert that triggered this
event was raised. |
String |
getSource()
Returns the source of the alert that triggered this event.
|
org.lsst.ccs.bus.data.RaisedAlertSummary |
getSummary()
Returns the current summary of alerts for the source of the alert that triggered this event.
|
String |
toString() |
public AlertEvent(String source, org.lsst.ccs.bus.data.Alert alert, org.lsst.ccs.bus.data.RaisedAlertSummary summary)
source - Alert source (typically, subsystem name).alert - Alert instance.summary - Current alert summary for the specified source.public AlertEvent(String source, String[] clearedIDs, org.lsst.ccs.bus.data.RaisedAlertSummary summary)
source - Alert source (typically, subsystem name).clearedIDs - IDs of cleared alerts.summary - Current alert summary for the specified source.public String getSource()
getSource in class EventObjectpublic org.lsst.ccs.bus.data.Alert getAlert()
Alert that triggered this event.
Returns null if this event was triggered by clearing alerts.Alert that triggered this event.public org.lsst.ccs.bus.states.AlertState getLevel()
WARNING or ALARM) at which the alert that triggered this
event was raised. Returns if this event was triggered by clearing alerts.public org.lsst.ccs.bus.data.RaisedAlertSummary getSummary()
public List<String> getClearedIds()
null if this event was not triggered by clearing alerts.public String toString()
toString in class EventObjectCopyright © 2016 LSST. All rights reserved.