Commit 531b5ce7 authored by 11's avatar 11

修改拓扑图参数

parent bd8ee995
...@@ -403,6 +403,9 @@ public class Manager { ...@@ -403,6 +403,9 @@ public class Manager {
for(FlowNode node : flowNodes){ for(FlowNode node : flowNodes){
TcpFlowNodeDto nodeDto = new TcpFlowNodeDto(); TcpFlowNodeDto nodeDto = new TcpFlowNodeDto();
long faultCount=0; long faultCount=0;
if(node.getServerPath()==null || node.getServerPath().isEmpty()){
nodeDto.setCategory("machine");
}else{
try { try {
faultCount = getFaultCount(node.getServerPath()); faultCount = getFaultCount(node.getServerPath());
if(faultCount>0){ if(faultCount>0){
...@@ -414,6 +417,7 @@ public class Manager { ...@@ -414,6 +417,7 @@ public class Manager {
} catch (Exception e) { } catch (Exception e) {
faultCount = 0; faultCount = 0;
} }
}
nodeDto.setFaultCount((int) faultCount); nodeDto.setFaultCount((int) faultCount);
nodeDto.setKey(node.getCluster_name()); nodeDto.setKey(node.getCluster_name());
nodeDto.setUrl(node.getServerPath()); nodeDto.setUrl(node.getServerPath());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment