Commit 531b5ce7 authored by 11's avatar 11

修改拓扑图参数

parent bd8ee995
...@@ -403,16 +403,20 @@ public class Manager { ...@@ -403,16 +403,20 @@ 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;
try { if(node.getServerPath()==null || node.getServerPath().isEmpty()){
faultCount = getFaultCount(node.getServerPath()); nodeDto.setCategory("machine");
if(faultCount>0){ }else{
/* machine浅色图标 clusterFault错误图标 clusterNormal正常图标 */ try {
nodeDto.setCategory("clusterFault"); faultCount = getFaultCount(node.getServerPath());
}else{ if(faultCount>0){
nodeDto.setCategory("clusterNormal"); /* machine浅色图标 clusterFault错误图标 clusterNormal正常图标 */
nodeDto.setCategory("clusterFault");
}else{
nodeDto.setCategory("clusterNormal");
}
} catch (Exception e) {
faultCount = 0;
} }
} catch (Exception e) {
faultCount = 0;
} }
nodeDto.setFaultCount((int) faultCount); nodeDto.setFaultCount((int) faultCount);
nodeDto.setKey(node.getCluster_name()); nodeDto.setKey(node.getCluster_name());
......
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