Commit 531b5ce7 authored by 11's avatar 11

修改拓扑图参数

parent bd8ee995
......@@ -403,16 +403,20 @@ public class Manager {
for(FlowNode node : flowNodes){
TcpFlowNodeDto nodeDto = new TcpFlowNodeDto();
long faultCount=0;
try {
faultCount = getFaultCount(node.getServerPath());
if(faultCount>0){
/* machine浅色图标 clusterFault错误图标 clusterNormal正常图标 */
nodeDto.setCategory("clusterFault");
}else{
nodeDto.setCategory("clusterNormal");
if(node.getServerPath()==null || node.getServerPath().isEmpty()){
nodeDto.setCategory("machine");
}else{
try {
faultCount = getFaultCount(node.getServerPath());
if(faultCount>0){
/* 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.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