public class CassAlertsServiceImpl extends Object implements AlertsService
AlertsService.
This implementation processes data asynchronously using a buffer queue.| Constructor and Description |
|---|
CassAlertsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
ackAlerts(String tenantId,
Collection<String> alertIds,
String ackBy,
String ackNotes) |
void |
addAlerts(Collection<Alert> alerts) |
void |
clear() |
ActionsService |
getActions() |
List<Alert> |
getAlerts(String tenantId,
AlertsCriteria criteria) |
DefinitionsService |
getDefinitions() |
RulesEngine |
getRules() |
void |
initServices() |
void |
reload() |
void |
reloadTrigger(String tenantId,
String triggerId) |
void |
resolveAlerts(String tenantId,
Collection<String> alertIds,
String resolvedBy,
String resolvedNotes,
List<Set<ConditionEval>> resolvedEvalSets) |
void |
resolveAlertsForTrigger(String tenantId,
String triggerId,
String resolvedBy,
String resolvedNotes,
List<Set<ConditionEval>> resolvedEvalSets) |
void |
sendData(Collection<Data> data) |
void |
sendData(Data data) |
void |
setActions(ActionsService actions) |
void |
setDefinitions(DefinitionsService definitions) |
void |
setRules(RulesEngine rules) |
void |
shutdown() |
public ActionsService getActions()
public void setActions(ActionsService actions)
public DefinitionsService getDefinitions()
public void setDefinitions(DefinitionsService definitions)
public RulesEngine getRules()
public void setRules(RulesEngine rules)
@PostConstruct public void initServices()
@PreDestroy public void shutdown()
public void addAlerts(Collection<Alert> alerts) throws Exception
addAlerts in interface AlertsServiceExceptionpublic List<Alert> getAlerts(String tenantId, AlertsCriteria criteria) throws Exception
getAlerts in interface AlertsServiceExceptionpublic void clear()
clear in interface AlertsServicepublic void reload()
reload in interface AlertsServicepublic void reloadTrigger(String tenantId, String triggerId)
reloadTrigger in interface AlertsServicepublic void sendData(Collection<Data> data)
sendData in interface AlertsServicepublic void sendData(Data data)
sendData in interface AlertsServicepublic void ackAlerts(String tenantId, Collection<String> alertIds, String ackBy, String ackNotes) throws Exception
ackAlerts in interface AlertsServiceExceptionpublic void resolveAlerts(String tenantId, Collection<String> alertIds, String resolvedBy, String resolvedNotes, List<Set<ConditionEval>> resolvedEvalSets) throws Exception
resolveAlerts in interface AlertsServiceExceptionpublic void resolveAlertsForTrigger(String tenantId, String triggerId, String resolvedBy, String resolvedNotes, List<Set<ConditionEval>> resolvedEvalSets) throws Exception
resolveAlertsForTrigger in interface AlertsServiceExceptionCopyright © 2015 Red Hat, Inc.. All rights reserved.