public class CassDefinitionsServiceImpl extends Object implements DefinitionsService
DefinitionsService.| Constructor and Description |
|---|
CassDefinitionsServiceImpl() |
public AlertsService getAlertsService()
public void setAlertsService(AlertsService alertsService)
public com.datastax.driver.core.Session getSession()
public void setSession(com.datastax.driver.core.Session session)
public String getKeyspace()
public void setKeyspace(String keyspace)
@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 removeTrigger(String tenantId, String triggerId) throws Exception
removeTrigger in interface DefinitionsServiceExceptionpublic Trigger updateTrigger(String tenantId, Trigger trigger) throws Exception
updateTrigger in interface DefinitionsServiceExceptionpublic Trigger getTrigger(String tenantId, String triggerId) throws Exception
getTrigger in interface DefinitionsServiceExceptionpublic Collection<Trigger> getTriggers(String tenantId) throws Exception
getTriggers in interface DefinitionsServiceExceptionpublic Collection<Trigger> getAllTriggers() throws Exception
getAllTriggers in interface DefinitionsServiceExceptionpublic Trigger copyTrigger(String tenantId, String triggerId, Map<String,String> dataIdMap) throws Exception
copyTrigger in interface DefinitionsServiceExceptionpublic Dampening addDampening(String tenantId, Dampening dampening) throws Exception
addDampening in interface DefinitionsServiceExceptionpublic void removeDampening(String tenantId, String dampeningId) throws Exception
removeDampening in interface DefinitionsServiceExceptionpublic Dampening updateDampening(String tenantId, Dampening dampening) throws Exception
updateDampening in interface DefinitionsServiceExceptionpublic Dampening getDampening(String tenantId, String dampeningId) throws Exception
getDampening in interface DefinitionsServiceExceptionpublic Collection<Dampening> getTriggerDampenings(String tenantId, String triggerId, Trigger.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 DefinitionsServiceExceptionpublic Collection<Condition> addCondition(String tenantId, String triggerId, Trigger.Mode triggerMode, Condition condition) throws Exception
addCondition in interface DefinitionsServiceExceptionpublic Collection<Condition> removeCondition(String tenantId, String conditionId) throws Exception
removeCondition in interface DefinitionsServiceExceptionpublic Collection<Condition> updateCondition(String tenantId, Condition condition) throws Exception
updateCondition in interface DefinitionsServiceExceptionpublic Collection<Condition> setConditions(String tenantId, String triggerId, Trigger.Mode triggerMode, Collection<Condition> conditions) throws Exception
setConditions in interface DefinitionsServiceExceptionpublic Condition getCondition(String tenantId, String conditionId) throws Exception
getCondition in interface DefinitionsServiceExceptionpublic Collection<Condition> getTriggerConditions(String tenantId, String triggerId, Trigger.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 removeActionPlugin(String actionPlugin) throws Exception
removeActionPlugin in interface DefinitionsServiceExceptionpublic void updateActionPlugin(String actionPlugin, Set<String> properties) 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 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 addTag(String tenantId, Tag tag) throws Exception
addTag in interface DefinitionsServiceExceptionpublic void removeTags(String tenantId, String triggerId, String category, String name) throws Exception
removeTags in interface DefinitionsServiceExceptionpublic List<Tag> getTriggerTags(String tenantId, String triggerId, String category) throws Exception
getTriggerTags in interface DefinitionsServiceExceptionpublic void registerListener(DefinitionsListener listener)
registerListener in interface DefinitionsServiceCopyright © 2015 Red Hat, Inc.. All rights reserved.