Commit 754ad2c2 authored by gaozhentao's avatar gaozhentao

修改拓扑图参数

parent 57e50ef4
......@@ -72,4 +72,15 @@ public class FlowLine {
public void setCoordinateRight(String coordinateRight) {
this.coordinateRight = coordinateRight;
}
public FlowLine(){
}
public FlowLine(String cluster_name_left, String clusterNameRight, String coordinateLeft, String coordinateRight, String points, String color) {
this.cluster_name_left = cluster_name_left;
this.clusterNameRight = clusterNameRight;
this.coordinateLeft = coordinateLeft;
this.coordinateRight = coordinateRight;
this.points = points;
this.color = color;
}
}
......@@ -62,4 +62,14 @@ public class FlowNode {
public void setFaultCount(String faultCount) {
this.faultCount = faultCount;
}
public FlowNode(){}
public FlowNode(String cluster_name, String coordinate, String mark, String serverPath, String faultCount) {
this.cluster_name = cluster_name;
this.coordinate = coordinate;
this.mark = mark;
this.serverPath = serverPath;
this.faultCount = faultCount;
}
}
......@@ -404,12 +404,12 @@ public class Manager {
TcpFlowNodeDto nodeDto = new TcpFlowNodeDto();
long faultCount=0;
if(node.getServerPath()==null || node.getServerPath().isEmpty()){
nodeDto.setCategory("machine");
nodeDto.setCategory(node.getMark());
}else{
try {
faultCount = getFaultCount(node.getServerPath());
if(faultCount>0){
/* machine浅色图标 clusterFault错误图标 clusterNormal正常图标 */
/* machine浅色图标 clusterFault错误图标 clusterNormal正常图标 meaningless无意义 */
nodeDto.setCategory("clusterFault");
}else{
nodeDto.setCategory("clusterNormal");
......
package com.yingxin.prms.utils;
import com.yingxin.prms.domain.FlowLine;
import com.yingxin.prms.domain.FlowNode;
import java.util.ArrayList;
import java.util.List;
public class FlowUtil {
// public static List<FlowLine> getLines(){
// List<FlowLine> list = new ArrayList<>();
// list.add(new FlowLine( cluster_name_left, clusterNameRight, coordinateLeft, coordinateRight, points, color));
//
//
//
// return list;
// }
//
// public static List<FlowNode> getNodes(){
// List<FlowNode> list = new ArrayList<>();
// list.add(new FlowNode( cluster_name, coordinate, mark, serverPath, faultCount));
//
//
//
// return list;
// }
}
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