...
|
...
|
@@ -66,7 +66,7 @@ public class CacheInfoServiceImpl implements CacheInfoService { |
|
|
@Override
|
|
|
public int addCacheInfoConfig(CacheInfoReq req) {
|
|
|
// 修改zk
|
|
|
modifyZkConfig(req);
|
|
|
//modifyZkConfig(req);
|
|
|
|
|
|
CacheInfoConfig cacheInfoConfig = new CacheInfoConfig();
|
|
|
BeanUtils.copyProperties(req,cacheInfoConfig);
|
...
|
...
|
@@ -77,7 +77,7 @@ public class CacheInfoServiceImpl implements CacheInfoService { |
|
|
@Override
|
|
|
public int updateCacheInfoConfig(CacheInfoReq req) {
|
|
|
// 修改zk
|
|
|
modifyZkConfig(req);
|
|
|
//modifyZkConfig(req);
|
|
|
CacheInfoConfig cacheInfoConfig = new CacheInfoConfig();
|
|
|
BeanUtils.copyProperties(req,cacheInfoConfig);
|
|
|
// 修改db
|
...
|
...
|
@@ -256,7 +256,7 @@ public class CacheInfoServiceImpl implements CacheInfoService { |
|
|
return zkMoitorService.getAllChildren(server, path);
|
|
|
}
|
|
|
|
|
|
private void modifyZkConfig(CacheInfoReq req) {
|
|
|
/*private void modifyZkConfig(CacheInfoReq req) {
|
|
|
ZkTreeAllReq zkTreeAllReq = new ZkTreeAllReq();
|
|
|
zkTreeAllReq.setZkPath(ZK_PATH+"/"+req.getConfigName());
|
|
|
zkTreeAllReq.setZkValue(req.getConfigValue());
|
...
|
...
|
@@ -284,5 +284,5 @@ public class CacheInfoServiceImpl implements CacheInfoService { |
|
|
zkTreeAllReq.setIp(serverType);
|
|
|
zkMoitorService.editZkMonitorDetail(zkTreeAllReq);
|
|
|
}
|
|
|
}
|
|
|
}*/
|
|
|
} |
...
|
...
|
|