Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
33ea2e4d
Commit
33ea2e4d
authored
Jul 19, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加图形化灰度发布功能
parent
31d895e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/RouterTopology.java
+9
-3
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/RouterTopology.java
View file @
33ea2e4d
...
@@ -32,6 +32,7 @@ import javax.swing.JToolBar;
...
@@ -32,6 +32,7 @@ import javax.swing.JToolBar;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
com.nepxion.cots.twaver.element.TElementManager
;
import
com.nepxion.cots.twaver.element.TLink
;
import
com.nepxion.cots.twaver.element.TLink
;
import
com.nepxion.cots.twaver.element.TNode
;
import
com.nepxion.cots.twaver.element.TNode
;
import
com.nepxion.cots.twaver.graph.TGraphControlBar
;
import
com.nepxion.cots.twaver.graph.TGraphControlBar
;
...
@@ -165,14 +166,19 @@ public class RouterTopology extends AbstractTopology {
...
@@ -165,14 +166,19 @@ public class RouterTopology extends AbstractTopology {
List
<
RouterEntity
>
nexts
=
routerEntity
.
getNexts
();
List
<
RouterEntity
>
nexts
=
routerEntity
.
getNexts
();
if
(
CollectionUtils
.
isNotEmpty
(
nexts
))
{
if
(
CollectionUtils
.
isNotEmpty
(
nexts
))
{
for
(
RouterEntity
next
:
nexts
)
{
for
(
RouterEntity
next
:
nexts
)
{
TNode
nextNode
=
addNode
(
next
,
index
);
String
nodeName
=
getNodeName
(
next
);
addLink
(
node
,
nextNode
);
TNode
nextNode
=
TElementManager
.
getNode
(
dataBox
,
nodeName
);
if
(
nextNode
==
null
)
{
nextNode
=
addNode
(
next
,
index
);
index
++;
index
++;
}
addLink
(
node
,
nextNode
);
route
(
next
,
nextNode
,
index
);
route
(
next
,
nextNode
,
index
);
}
}
}
}
}
}
private
String
getNodeName
(
RouterEntity
routerEntity
)
{
private
String
getNodeName
(
RouterEntity
routerEntity
)
{
...
...
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