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
1708f4ac
Commit
1708f4ac
authored
Jul 17, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加图形化灰度发布功能
parent
50273f5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
+6
-3
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
View file @
1708f4ac
...
...
@@ -123,9 +123,10 @@ public class ServiceTopology extends AbstractTopology {
private
void
addService
(
String
serviceId
,
List
<
InstanceEntity
>
instances
)
{
int
count
=
groupLocationMap
.
size
();
TGroup
group
=
createGroup
(
getGroupName
(
serviceId
,
instances
.
size
()),
serviceGroupEntity
,
count
,
groupStartX
,
groupStartY
,
groupHorizontalGap
,
groupVerticalGap
);
group
.
setGroupType
(
TGroupType
.
ELLIPSE_GROUP_TYPE
.
getType
());
String
groupName
=
getGroupName
(
serviceId
,
instances
.
size
());
TGroup
group
=
createGroup
(
groupName
,
serviceGroupEntity
,
count
,
groupStartX
,
groupStartY
,
groupHorizontalGap
,
groupVerticalGap
);
group
.
setGroupType
(
TGroupType
.
ELLIPSE_GROUP_TYPE
.
getType
());
group
.
setUserObject
(
serviceId
);
addInstances
(
group
,
serviceGroupEntity
,
serviceNodeEntity
,
serviceId
,
instances
);
...
...
@@ -135,7 +136,9 @@ public class ServiceTopology extends AbstractTopology {
if
(
CollectionUtils
.
isNotEmpty
(
instances
))
{
for
(
int
i
=
0
;
i
<
instances
.
size
();
i
++)
{
InstanceEntity
instance
=
instances
.
get
(
i
);
TNode
node
=
createNode
(
getNodeName
(
instance
),
nodeEntity
,
i
,
nodeStartX
,
nodeStartY
,
nodeHorizontalGap
,
nodeVerticalGap
);
String
nodeName
=
getNodeName
(
instance
);
TNode
node
=
createNode
(
nodeName
,
nodeEntity
,
i
,
nodeStartX
,
nodeStartY
,
nodeHorizontalGap
,
nodeVerticalGap
);
node
.
setUserObject
(
instance
);
group
.
addChild
(
node
);
...
...
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