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
RenKaiGe-Office a574c207a3 1:扩展编译,分组,域配置等的关联关系,以支持分组复用
2:实现为分组复用配置单独添加域配置的功能
3:为单独添加域配置时添加ipClientRangeList(生效范围IP域分组列表)域支持,业务类型37需要该域
2018-08-27 09:48:09 +08:00

69 lines
2.0 KiB
Java

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);
/**
* 保存 maat配置接口,key是redisDBIndex,value是配置集合
* @param configMap
* @return 成功返回true,失败返回false或抛出异常
*/
public boolean saveMaatConfig(Map<Integer, List<MaatConfig>> configMap);
/**
* 分组复用域配置新增接口,key是redisDBIndex,value是配置集合
* @param configMap
* @return 成功返回true,失败返回false或抛出异常
*/
public boolean saveGroupReuseConfig(Map<Integer, List<MaatConfig>> configMap);
/**
* 获取指定key的自增长值
* @param key 需要自增的key
* @return
*/
public Long getIncrId(String key);
/**
* 删除非maat类配置,第一个key是redisDBIndex,第二个key是业务类型,value是配置id集合
* @param idMap
* @param isInvalid 是否将配置置为无效
* @return 成功返回true,失败返回false或抛出异常
*/
public boolean delUnMaatConfig(Map<Integer, Map<Integer, List<Long>>> idMap, boolean isInvalid);
/**
* 删除maat类配置,第一个key是redisDBIndex,第二个key是业务类型,value是配置id集合
* @param idMap
* @return 成功返回true,失败返回false或抛出异常
*/
public boolean delMaatConfig(Map<Integer, Map<Integer, List<Long>>> idMap);
/**
* 删除分组复用的域配置
* @param maatMap key是service
* @return
*/
public boolean delGroupReuseConfig(Map<Integer, List<MaatConfig>> configMap);
}