
public final class AlertService extends Object implements HasLifecycle
| Constructor and Description |
|---|
AlertService(Agent a) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClearAlertHandler(ClearAlertHandler handler)
Deprecated.
This call is no longer needed as the ClearAlertHandler should be picked up by the framework
|
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
Agent.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, postStart, shutdownNow, startpublic AlertService(Agent a)
public void postInit()
postInit in interface HasLifecyclepublic void postShutdown()
HasLifecycleSubsystem when
Agent.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 HasLifecycle@Deprecated public 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 © 2017 LSST. All rights reserved.