public class DbAlertsServiceImpl extends Object implements AlertsService
AlertsService.
This implementation processes data asynchronously using a buffer queue.| Constructor and Description |
|---|
DbAlertsServiceImpl() |
public ActionsService getActions()
public void setActions(ActionsService actions)
public DefinitionsService getDefinitions()
public void setDefinitions(DefinitionsService definitions)
public RulesEngine getRules()
public void setRules(RulesEngine rules)
public DataSource getDatasource()
public void setDatasource(DataSource ds)
@PostConstruct public void initServices()
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.