public final class StatusRaisedAlert extends StatusAlert<Alert,Alert>
| Constructor and Description |
|---|
StatusRaisedAlert(Alert alert,
String cause,
StateBundle state) |
StatusRaisedAlert(Alert alert,
String cause,
StateBundle state,
RaisedAlertSummary raisedAlertSummary)
Build a StatusAlert from the provided RaisedAlert.
|
| Modifier and Type | Method and Description |
|---|---|
protected Alert |
encodeObject(Alert obj)
Subclasses must provide a specific implementation of the encoding process.
|
String |
getCause()
Get the String explaining what caused the Alert.
|
Alert |
getRaisedAlert()
Get the RaisedAlert contained in this message.
|
getRaisedAlertSummarygetState, toStringgetClassName, getEncodedData, getObject, getOriginAgentInfo, getTimeStamp, setOriginAgentInfopublic StatusRaisedAlert(Alert alert, String cause, StateBundle state)
public StatusRaisedAlert(Alert alert, String cause, StateBundle state, RaisedAlertSummary raisedAlertSummary)
alert - The RaisedAlert object that caused the publication of this StatusAlert.cause - What caused the Alert to be raised.state - The State of the Agent at the time the object is created.raisedAlertSummary - the summary of all uncleared alerts at the time
the object is created.public Alert getRaisedAlert()
protected Alert encodeObject(Alert obj)
BusMessageencodeObject in class BusMessage<Alert,Alert>obj - The Serializable object embedded in the BusMessage.public String getCause()
Copyright © 2016 LSST. All rights reserved.