public class AlertEvent extends EventObject
AlertService.source| Constructor and Description |
|---|
AlertEvent(String source,
org.lsst.ccs.bus.data.Alert alert,
org.lsst.ccs.bus.data.RaisedAlertSummary summary) |
AlertEvent(String source,
String[] clearedIDs,
org.lsst.ccs.bus.data.RaisedAlertSummary summary) |
| 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)
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 © 2015 LSST. All rights reserved.