...
|
...
|
@@ -278,7 +278,7 @@ public class ZkMoitorServiceImpl implements IZkMoitorService { |
|
|
return type_zk1.compareTo(type_zk2);
|
|
|
}*/
|
|
|
|
|
|
private List<ZkConfigAll> getAllChildren(String parentPath,CuratorFramework client,String ip) {
|
|
|
private List<ZkConfigAll> getAllChildren(String parentPath,CuratorFramework client,String cloudKey) {
|
|
|
List<ZkConfigAll> childList=new ArrayList<ZkConfigAll>();
|
|
|
try {
|
|
|
//取该路径下的所有子节点
|
...
|
...
|
@@ -293,12 +293,12 @@ public class ZkMoitorServiceImpl implements IZkMoitorService { |
|
|
ZkConfigAll zkNode=new ZkConfigAll();
|
|
|
zkNode.setZkPath(nodePath);
|
|
|
zkNode.setZkName(nodeName);
|
|
|
zkNode.setIp(ip);
|
|
|
zkNode.setIp(cloudKey);
|
|
|
/* String data =new String(client.getData().forPath(nodePath),"UTF-8");
|
|
|
zkNode.setZkValue(data);*/
|
|
|
childList.add(zkNode);
|
|
|
//递归
|
|
|
childList.addAll(getAllChildren(nodePath, client,ip));
|
|
|
childList.addAll(getAllChildren(nodePath, client,cloudKey));
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
...
|
...
|
|