...
|
...
|
@@ -93,6 +93,15 @@ public class ZkMoitorServiceImpl implements IZkMoitorService { |
|
|
|
|
|
@Override
|
|
|
public PageResponse<ZkConfig> getZkMonitorTree(ZkTreeReq req) {
|
|
|
return getZkMonitorTreeWithPath(req,"config");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public PageResponse<ZkConfig> getZkMonitorTree4Log4j(ZkTreeReq req) {
|
|
|
return getZkMonitorTreeWithPath(req,"log4j");
|
|
|
}
|
|
|
|
|
|
private PageResponse<ZkConfig> getZkMonitorTreeWithPath(ZkTreeReq req,String equalName) {
|
|
|
|
|
|
String hostIp = getHostIp(req.getIp());
|
|
|
PageResponse<ZkConfig> response = new PageResponse<ZkConfig>();
|
...
|
...
|
@@ -112,7 +121,7 @@ public class ZkMoitorServiceImpl implements IZkMoitorService { |
|
|
zkConfig.setName(chi);
|
|
|
zkConfig.setRoot(rootString);
|
|
|
zkConfig.setIp(req.getIp());
|
|
|
if(chi.equals("config")){
|
|
|
if(chi.equals(equalName)){
|
|
|
list.add(zkConfig);
|
|
|
}
|
|
|
|
...
|
...
|
|