Authored by qinchao

添加redis查询

... ... @@ -42,7 +42,19 @@ public class RedisOperateServiceImpl implements RedisOperateService {
//aws 同步 ; aws 不同步 ;qcloud 同步 ; qcloud 不同步 ;大数据aws ;大数据qcloud
String[] typeInfoNames= RedisType.getAllType();
String[] typeInfoNames_CN=RedisType.getAllType_CN();
return fetchHostFromCmdb(typeInfoNames,typeInfoNames_CN);
Map<String,List<Map<String,String>>> map= fetchHostFromCmdb(typeInfoNames,typeInfoNames_CN);
//QCLOUD-全球购
if(map!=null){
List<Map<String,String>> infos= Lists.newArrayList();
Map<String,String> tmp_map=Maps.newHashMap();
//tmp_map.put("id","QCLOUD");
tmp_map.put("ip","global.redis.yohoops.org");
tmp_map.put("port",""+6379);
infos.add(tmp_map);
map.put("QCLOUD-全球购",infos);
}
return map;
}
/**
... ...