
public final class AlertService extends Object implements HasLifecycle
| Constructor and Description |
|---|
AlertService(Agent a) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClearAlertHandler(ClearAlertHandler handler)
Add a ClearAlertHandler to this Subsystem.
|
String[] |
clearAlerts(String... alertId)
Clear one or more Alerts by providing the alert id.
|
String[] |
clearAllAlerts()
Attempt to clear all the outstanding alerts.
|
RaisedAlertSummary |
getRaisedAlertSummary()
Get the Subsystem's RaisedAlertSummary.
|
void |
postInit()
Population of clear alert handlers.
|
void |
postShutdown()
Called from the enclosing
Subsystem when
org.lsst.ccs.Subsystem#shutdown() has been called after shtudownNow has
been invoked on all the children. |
void |
raiseAlert(Alert alert,
AlertState severity,
String cause)
Raise an Alert with a given AlertState.
|
public AlertService(Agent a)
public void postInit()
postInit in interface HasLifecyclepublic void postShutdown()
HasLifecycleSubsystem when
org.lsst.ccs.Subsystem#shutdown() has been called after shtudownNow has
been invoked on all the children. At the time it
is called :
PhaseState is CLOSING.
HardwareController.checkStopped() has
been called
postShutdown in interface HasLifecyclepublic void addClearAlertHandler(ClearAlertHandler handler)
handler - The ClearAlertHandler class that will handle the clearing
of alerts.public void raiseAlert(Alert alert, AlertState severity, String cause)
alert - The Alert instance to be raisedseverity - The AlertState of this Alert.cause - The reason the Alert was raised.@Command(description="Clear alerts", type=ACTION) public String[] clearAlerts(String... alertId)
alertId - the Id of the Alerts to be cleared.@Command(description="Clear all alerts", type=ACTION) public String[] clearAllAlerts()
@Command(description="Get the Raised Alert Summary", type=QUERY) public RaisedAlertSummary getRaisedAlertSummary()
Copyright © 2018 LSST. All rights reserved.