
public interface ClearAlertHandler extends AlertHandler
Alert clearing.
These classes have to register themselves with a Subsystem. Multiple handlers
can be registered with a given subsystem.
ClearAlertHandlers will be called back with the instance of the Alert to be cleared.
The handler has to assess if it is ok for the Subsystem to clear the status
of a given Alert.
When clearing an Alert instance the handlers will be called in order and depending
on the return code the following actions will be taken:
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClearAlertHandler.ClearAlertCode
Enumeration of codes returned when the canClearAlert method is invoked.
|
| Modifier and Type | Method and Description |
|---|---|
ClearAlertHandler.ClearAlertCode |
canClearAlert(Alert alert)
Callback to clear an
Alert instance. |
ClearAlertHandler.ClearAlertCode canClearAlert(Alert alert)
Alert instance.
Return true/false if the Alert can be cleared.
When true is returned the Alert is cleared and no more handlers will
be checked. When false is returned other handlers will be handed the Alert
instance to be cleared. If no handler returns true, the Alert will not be
cleared.alert - The Alert instance to clear.Copyright © 2018 LSST. All rights reserved.