This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-argus-service/src/main/java/com/nis/web/service/restful/ConfigRedisService.java

65 lines
1.9 KiB
Java
Raw Normal View History

package com.nis.web.service.restful;
import java.util.List;
import java.util.Map;
import com.nis.domain.restful.MaatConfig;
/**
*
* <p>Title: ConfigRedisService</p>
* <p>Description: 保存配置到redis中</p>
* <p>Company: IIE</p>
* @author rkg
* @date 2018年5月17日
*
*/
public interface ConfigRedisService {
/**
* 下发非maat配置接口,key是redisDBIndex,value是配置集合
* @param configMap
* @return 成功返回true,失败返回false或抛出异常
*/
public boolean saveUnMaatConfig(Map<Integer, List<Map<String, String>>> configMap);
2018-05-21 10:21:26 +08:00
/**
* 保存 maat配置接口,key是redisDBIndex,value是配置集合
* @param configMap
* @return 成功返回true,失败返回false或抛出异常
*/
public boolean saveMaatConfig(Map<Integer, List<MaatConfig>> configMap);
/**
* 下发配置成功后,需要更新编译,,域等配置id的对应关系
* @param configMap
*/
//public void addMaatRelation(Map<Integer, List<MaatConfig>> configMap);
2018-05-21 10:21:26 +08:00
/**
* 获取指定key的自增长值
* @param key 需要自增的key
* @return
*/
public Long getIncrId(String key);
2018-05-29 15:36:42 +08:00
/**
* 删除非maat类配置,第一个key是redisDBIndex,第二个key是业务类型,value是配置id集合
* @param idMap
* @return 成功返回true,失败返回false或抛出异常
*/
public boolean delUnMaatConfig(Map<Integer, Map<Integer, List<Long>>> idMap);
/**
* 删除maat类配置,第一个key是redisDBIndex,第二个key是业务类型,value是配置id集合
* @param idMap
* @return 成功返回true,失败返回false或抛出异常
*/
public boolean delMaatConfig(Map<Integer, Map<Integer, List<Long>>> idMap);
/**
* 删除maat类配置成功后,需要更新编译,,域等配置id的对应关系
* @param idMap
*/
//public void delMaatRelation(Map<Integer, Map<Integer, List<Long>>> idMap);
}