public class CassDefinitionsServiceImpl extends Object implements DefinitionsService
DefinitionsService.| Modifier and Type | Field and Description |
|---|---|
static String |
SKIP_INIT_DATA
Used on distributed environments.
|
| Constructor and Description |
|---|
CassDefinitionsServiceImpl() |
public static final String SKIP_INIT_DATA
public AlertsEngine getAlertsEngine()
public void setAlertsEngine(AlertsEngine alertsEngine)
@PostConstruct public void init()
@PreDestroy public void shutdown()
public void addAction(String tenantId, String actionPlugin, String actionId, Map<String,String> properties) throws Exception
addAction in interface DefinitionsServiceExceptionpublic void addTrigger(String tenantId, Trigger trigger) throws Exception
addTrigger in interface DefinitionsServiceExceptionpublic void addGroupTrigger(String tenantId, Trigger groupTrigger) throws Exception
addGroupTrigger in interface DefinitionsServiceExceptionpublic void removeTrigger(String tenantId, String triggerId) throws Exception
removeTrigger in interface DefinitionsServiceExceptionpublic void removeGroupTrigger(String tenantId, String groupId, boolean keepNonOrphans, boolean keepOrphans) throws Exception
removeGroupTrigger in interface DefinitionsServiceExceptionpublic Trigger updateTrigger(String tenantId, Trigger trigger) throws Exception
updateTrigger in interface DefinitionsServiceExceptionpublic Trigger updateGroupTrigger(String tenantId, Trigger groupTrigger) throws Exception
updateGroupTrigger in interface DefinitionsServiceExceptionpublic Trigger orphanMemberTrigger(String tenantId, String memberId) throws Exception
orphanMemberTrigger in interface DefinitionsServiceExceptionpublic Trigger unorphanMemberTrigger(String tenantId, String memberId, Map<String,String> memberContext, Map<String,String> dataIdMap) throws Exception
unorphanMemberTrigger in interface DefinitionsServiceExceptionpublic Trigger getTrigger(String tenantId, String triggerId) throws Exception
getTrigger in interface DefinitionsServiceExceptionpublic Collection<Trigger> getAllTriggers() throws Exception
getAllTriggers in interface DefinitionsServiceExceptionpublic Page<Trigger> getTriggers(String tenantId, TriggersCriteria criteria, Pager pager) throws Exception
getTriggers in interface DefinitionsServiceExceptionpublic Collection<Trigger> getAllTriggersByTag(String name, String value) throws Exception
getAllTriggersByTag in interface DefinitionsServiceExceptionpublic Collection<Trigger> getMemberTriggers(String tenantId, String groupId, boolean includeOrphans) throws Exception
getMemberTriggers in interface DefinitionsServiceExceptionpublic Trigger addMemberTrigger(String tenantId, String groupId, String memberId, String memberName, Map<String,String> memberContext, Map<String,String> dataIdMap) throws Exception
addMemberTrigger in interface DefinitionsServiceExceptionpublic Dampening addDampening(String tenantId, Dampening dampening) throws Exception
addDampening in interface DefinitionsServiceExceptionpublic Dampening addGroupDampening(String tenantId, Dampening dampening) throws Exception
addGroupDampening in interface DefinitionsServiceExceptionpublic void removeDampening(String tenantId, String dampeningId) throws Exception
removeDampening in interface DefinitionsServiceExceptionpublic void removeGroupDampening(String tenantId, String dampeningId) throws Exception
removeGroupDampening in interface DefinitionsServiceExceptionpublic Dampening updateDampening(String tenantId, Dampening dampening) throws Exception
updateDampening in interface DefinitionsServiceExceptionpublic Dampening updateGroupDampening(String tenantId, Dampening dampening) throws Exception
updateGroupDampening in interface DefinitionsServiceExceptionpublic Dampening getDampening(String tenantId, String dampeningId) throws Exception
getDampening in interface DefinitionsServiceExceptionpublic Collection<Dampening> getTriggerDampenings(String tenantId, String triggerId, Mode triggerMode) throws Exception
getTriggerDampenings in interface DefinitionsServiceExceptionpublic Collection<Dampening> getAllDampenings() throws Exception
getAllDampenings in interface DefinitionsServiceExceptionpublic Collection<Dampening> getDampenings(String tenantId) throws Exception
getDampenings in interface DefinitionsServiceException@Deprecated public Collection<Condition> addCondition(String tenantId, String triggerId, Mode triggerMode, Condition condition) throws Exception
addCondition in interface DefinitionsServiceExceptionpublic Collection<Condition> setGroupConditions(String tenantId, String groupId, Mode triggerMode, Collection<Condition> groupConditions, Map<String,Map<String,String>> dataIdMemberMap) throws Exception
setGroupConditions in interface DefinitionsServiceException@Deprecated public Collection<Condition> removeCondition(String tenantId, String conditionId) throws Exception
removeCondition in interface DefinitionsServiceException@Deprecated public Collection<Condition> updateCondition(String tenantId, Condition condition) throws Exception
updateCondition in interface DefinitionsServiceExceptionpublic Collection<Condition> setConditions(String tenantId, String triggerId, Mode triggerMode, Collection<Condition> conditions) throws Exception
setConditions in interface DefinitionsServiceException@Deprecated public Condition getCondition(String tenantId, String conditionId) throws Exception
getCondition in interface DefinitionsServiceExceptionpublic Collection<Condition> getTriggerConditions(String tenantId, String triggerId, Mode triggerMode) throws Exception
getTriggerConditions in interface DefinitionsServiceExceptionpublic Collection<Condition> getAllConditions() throws Exception
getAllConditions in interface DefinitionsServiceExceptionpublic Collection<Condition> getConditions(String tenantId) throws Exception
getConditions in interface DefinitionsServiceExceptionpublic void addActionPlugin(String actionPlugin, Set<String> properties) throws Exception
addActionPlugin in interface DefinitionsServiceExceptionpublic void addActionPlugin(String actionPlugin, Map<String,String> defaultProperties) throws Exception
addActionPlugin in interface DefinitionsServiceExceptionpublic void removeActionPlugin(String actionPlugin) throws Exception
removeActionPlugin in interface DefinitionsServiceExceptionpublic void updateActionPlugin(String actionPlugin, Set<String> properties) throws Exception
updateActionPlugin in interface DefinitionsServiceExceptionpublic void updateActionPlugin(String actionPlugin, Map<String,String> defaultProperties) throws Exception
updateActionPlugin in interface DefinitionsServiceExceptionpublic Collection<String> getActionPlugins() throws Exception
getActionPlugins in interface DefinitionsServiceExceptionpublic Set<String> getActionPlugin(String actionPlugin) throws Exception
getActionPlugin in interface DefinitionsServiceExceptionpublic Map<String,String> getDefaultActionPlugin(String actionPlugin) throws Exception
getDefaultActionPlugin in interface DefinitionsServiceExceptionpublic void removeAction(String tenantId, String actionPlugin, String actionId) throws Exception
removeAction in interface DefinitionsServiceExceptionpublic void updateAction(String tenantId, String actionPlugin, String actionId, Map<String,String> properties) throws Exception
updateAction in interface DefinitionsServiceExceptionpublic Map<String,Map<String,Set<String>>> getAllActions() throws Exception
getAllActions in interface DefinitionsServiceExceptionpublic Map<String,Set<String>> getActions(String tenantId) throws Exception
getActions in interface DefinitionsServiceExceptionpublic Collection<String> getActions(String tenantId, String actionPlugin) throws Exception
getActions in interface DefinitionsServiceExceptionpublic Map<String,String> getAction(String tenantId, String actionPlugin, String actionId) throws Exception
getAction in interface DefinitionsServiceExceptionpublic void registerListener(DefinitionsListener listener, DefinitionsEvent.Type eventType, DefinitionsEvent.Type... eventTypes)
registerListener in interface DefinitionsServiceCopyright © 2015 Red Hat, Inc.. All rights reserved.