Commit 531b5ce7 authored by 11's avatar 11

修改拓扑图参数

parent bd8ee995
......@@ -403,6 +403,9 @@ public class Manager {
for(FlowNode node : flowNodes){
TcpFlowNodeDto nodeDto = new TcpFlowNodeDto();
long faultCount=0;
if(node.getServerPath()==null || node.getServerPath().isEmpty()){
nodeDto.setCategory("machine");
}else{
try {
faultCount = getFaultCount(node.getServerPath());
if(faultCount>0){
......@@ -414,6 +417,7 @@ public class Manager {
} catch (Exception e) {
faultCount = 0;
}
}
nodeDto.setFaultCount((int) faultCount);
nodeDto.setKey(node.getCluster_name());
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