Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PRMS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengfunan
PRMS
Commits
754ad2c2
Commit
754ad2c2
authored
Jan 15, 2021
by
gaozhentao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改拓扑图参数
parent
57e50ef4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
2 deletions
+53
-2
FlowLine.java
src/main/java/com/yingxin/prms/domain/FlowLine.java
+11
-0
FlowNode.java
src/main/java/com/yingxin/prms/domain/FlowNode.java
+10
-0
Manager.java
src/main/java/com/yingxin/prms/service/business/Manager.java
+2
-2
FlowUtil.java
src/main/java/com/yingxin/prms/utils/FlowUtil.java
+30
-0
No files found.
src/main/java/com/yingxin/prms/domain/FlowLine.java
View file @
754ad2c2
...
...
@@ -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
;
}
}
src/main/java/com/yingxin/prms/domain/FlowNode.java
View file @
754ad2c2
...
...
@@ -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
;
}
}
src/main/java/com/yingxin/prms/service/business/Manager.java
View file @
754ad2c2
...
...
@@ -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"
);
...
...
src/main/java/com/yingxin/prms/utils/FlowUtil.java
0 → 100644
View file @
754ad2c2
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;
// }
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment