public class CassDefinitionsServiceImpl extends Object implements DefinitionsService
DefinitionsService.| Constructor and Description |
|---|
CassDefinitionsServiceImpl() |
public void setAlertsEngine(AlertsEngine alertsEngine)
public void setAlertsContext(AlertsContext alertsContext)
public void setSession(com.datastax.driver.core.Session session)
public void addActionDefinition(String tenantId, ActionDefinition actionDefinition) throws Exception
addActionDefinition 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 void updateTriggerEnablement(String tenantId, String triggerId, boolean enabled) throws Exception
updateTriggerEnablement 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> memberTags, 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, String memberDescription, Map<String,String> memberContext, Map<String,String> memberTags, Map<String,String> dataIdMap) throws Exception
addMemberTrigger in interface DefinitionsServiceExceptionpublic Trigger addDataDrivenMemberTrigger(String tenantId, String groupId, String source) throws Exception
addDataDrivenMemberTrigger 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 removeActionDefinition(String tenantId, String actionPlugin, String actionId) throws Exception
removeActionDefinition in interface DefinitionsServiceExceptionpublic void updateActionDefinition(String tenantId, ActionDefinition actionDefinition) throws Exception
updateActionDefinition in interface DefinitionsServiceExceptionpublic Map<String,Map<String,Set<String>>> getAllActionDefinitionIds() throws Exception
getAllActionDefinitionIds in interface DefinitionsServiceExceptionpublic Map<String,Set<String>> getActionDefinitionIds(String tenantId) throws Exception
getActionDefinitionIds in interface DefinitionsServiceExceptionpublic Collection<String> getActionDefinitionIds(String tenantId, String actionPlugin) throws Exception
getActionDefinitionIds in interface DefinitionsServiceExceptionpublic ActionDefinition getActionDefinition(String tenantId, String actionPlugin, String actionId) throws Exception
getActionDefinition in interface DefinitionsServiceExceptionpublic void registerListener(DefinitionsListener listener, DefinitionsEvent.Type eventType, DefinitionsEvent.Type... eventTypes)
registerListener in interface DefinitionsServicepublic Definitions exportDefinitions(String tenantId) throws Exception
exportDefinitions in interface DefinitionsServiceExceptionpublic Definitions importDefinitions(String tenantId, Definitions definitions, ImportType strategy) throws Exception
importDefinitions in interface DefinitionsServiceExceptionCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.