
public static class AlertDispatcher.AlertHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
enabled |
| Constructor and Description |
|---|
AlertHandler(String name) |
| Modifier and Type | Method and Description |
|---|---|
AlertDispatcher.AlertHandler |
addAction(AlertDispatcher.AlertAction action) |
AlertDispatcher.AlertHandler |
addCommandAction(String destination,
String command,
Object... parameters) |
Predicate<AlertNotification> |
alertIdSelector(String id) |
Predicate<AlertNotification> |
alertLevelSelector(org.lsst.ccs.bus.states.AlertState severity) |
AlertDispatcher.AlertHandler |
andSelector(Predicate<AlertNotification> and) |
String |
getName() |
void |
onAlert(AlertNotification notif) |
Predicate<AlertNotification> |
originSelector(String origin) |
AlertDispatcher.AlertHandler |
orSelector(Predicate<AlertNotification> or) |
AlertDispatcher.AlertHandler |
setOriginAndAlertIdSelector(String origin,
String alertId) |
AlertDispatcher.AlertHandler |
setOriginSelector(String origin) |
AlertDispatcher.AlertHandler |
setSelector(Predicate<AlertNotification> selector) |
String |
status() |
public AlertHandler(String name)
public AlertDispatcher.AlertHandler addAction(AlertDispatcher.AlertAction action)
public AlertDispatcher.AlertHandler addCommandAction(String destination, String command, Object... parameters)
public String getName()
public AlertDispatcher.AlertHandler setSelector(Predicate<AlertNotification> selector)
public AlertDispatcher.AlertHandler orSelector(Predicate<AlertNotification> or)
public AlertDispatcher.AlertHandler andSelector(Predicate<AlertNotification> and)
public Predicate<AlertNotification> originSelector(String origin)
public Predicate<AlertNotification> alertIdSelector(String id)
public Predicate<AlertNotification> alertLevelSelector(org.lsst.ccs.bus.states.AlertState severity)
public AlertDispatcher.AlertHandler setOriginSelector(String origin)
public AlertDispatcher.AlertHandler setOriginAndAlertIdSelector(String origin, String alertId)
public void onAlert(AlertNotification notif)
Copyright © 2021 LSST. All rights reserved.