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
531b5ce7
Commit
531b5ce7
authored
Jan 15, 2021
by
11
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改拓扑图参数
parent
bd8ee995
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
Manager.java
src/main/java/com/yingxin/prms/service/business/Manager.java
+13
-9
No files found.
src/main/java/com/yingxin/prms/service/business/Manager.java
View file @
531b5ce7
...
...
@@ -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
());
...
...
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