public class AlertDispatcher extends Object implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Class and Description |
|---|---|
static class |
AlertDispatcher.AlertAction |
static class |
AlertDispatcher.AlertHandler |
static class |
AlertDispatcher.CommandAlertAction |
static class |
AlertDispatcher.EmailAlertAction |
static class |
AlertDispatcher.EmailAlertDeliveryStrategy
This Strategy is applied to each agent separately.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,AlertDispatcher.AlertHandler> |
handlers |
boolean |
isEnabled |
| Constructor and Description |
|---|
AlertDispatcher(Enum group) |
| Modifier and Type | Method and Description |
|---|---|
AlertDispatcher.AlertHandler |
addCommandAction(String handlerName,
String destination,
String command,
Object... parameters) |
String[] |
getAlertHandlers() |
Enum |
getGroup() |
String |
getGroupName() |
static org.lsst.ccs.utilities.logging.Logger |
getLogger() |
MCMUtilities |
getMcmUtilities() |
void |
onAlert(AlertNotification notif) |
void |
postInit() |
AlertDispatcher.AlertHandler |
setOriginAndAlertIdSelector(String handlerName,
String origin,
String alertId) |
AlertDispatcher.AlertHandler |
setOriginSelector(String handlerName,
String origin) |
String |
status() |
@LookupField(strategy=CHILDREN) protected Map<String,AlertDispatcher.AlertHandler> handlers
@ConfigurationParameter public boolean isEnabled
public AlertDispatcher(Enum group)
public MCMUtilities getMcmUtilities()
public void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecycle@Command public String status()
public Enum getGroup()
public String getGroupName()
public void onAlert(AlertNotification notif)
public static org.lsst.ccs.utilities.logging.Logger getLogger()
@Command public AlertDispatcher.AlertHandler addCommandAction(String handlerName, String destination, String command, Object... parameters)
@Command public AlertDispatcher.AlertHandler setOriginSelector(String handlerName, String origin)
@Command public AlertDispatcher.AlertHandler setOriginAndAlertIdSelector(String handlerName, String origin, String alertId)
@Command public String[] getAlertHandlers()
Copyright © 2020 LSST. All rights reserved.