Authored by zhaoqi

降级服务后台接口

... ... @@ -38,7 +38,7 @@ public class DegradeServiceImpl implements DegradeService {
private static String QQ = "zookeeper_qq";
// 测试用
private static String TEST = "zookeeper_205";
// private static String TEST = "zookeeper_205";
@Override
public PageResponse<DegradeConfig> getDegradeConfigList(DegradeInfoReq req) {
... ... @@ -77,17 +77,17 @@ public class DegradeServiceImpl implements DegradeService {
zkTreeAllReq.setZkPath(ZK_PATH+"/"+req.getConfigName());
zkTreeAllReq.setZkValue(req.getSwitchOn().equals("Y")?"true":"false");
// if ("all".equals(req.getCloudType())) {
// zkTreeAllReq.setIp("zookeeper_aws");
// zkMoitorService.editZkMonitorDetail(zkTreeAllReq);
//
// zkTreeAllReq.setIp("zookeeper_qq");
// zkMoitorService.editZkMonitorDetail(zkTreeAllReq);
// return ;
// }
if ("all".equals(req.getCloudType())) {
zkTreeAllReq.setIp(AWS);
zkMoitorService.editZkMonitorDetail(zkTreeAllReq);
zkTreeAllReq.setIp(QQ);
zkMoitorService.editZkMonitorDetail(zkTreeAllReq);
return ;
}
zkTreeAllReq.setIp(req.getCloudType());
// test
zkTreeAllReq.setIp(TEST);
// zkTreeAllReq.setIp(TEST);
zkMoitorService.editZkMonitorDetail(zkTreeAllReq);
}
... ... @@ -188,7 +188,7 @@ public class DegradeServiceImpl implements DegradeService {
cloudType = AWS;
}
// test
cloudType = TEST;
// cloudType = TEST;
return zkMoitorService.getAllChildren(cloudType,ZK_PATH);
}
}
... ...