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
28568c58
Commit
28568c58
authored
Jul 23, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加图形化灰度发布功能
parent
22b71b9e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/constant/ConsoleConstant.java
+0
-2
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
+6
-4
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
+3
-2
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
+3
-2
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/constant/ConsoleConstant.java
View file @
28568c58
...
@@ -17,5 +17,4 @@ public class ConsoleConstant {
...
@@ -17,5 +17,4 @@ public class ConsoleConstant {
public
static
final
String
FILTER
=
"filter"
;
public
static
final
String
FILTER
=
"filter"
;
public
static
final
String
PLUGIN
=
"plugin"
;
public
static
final
String
PLUGIN
=
"plugin"
;
public
static
final
String
NO_FILTER_DESCRIPTION
=
"[No filter]"
;
}
}
\ No newline at end of file
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
View file @
28568c58
...
@@ -82,6 +82,8 @@ import com.nepxion.swing.textfield.number.JNumberTextField;
...
@@ -82,6 +82,8 @@ import com.nepxion.swing.textfield.number.JNumberTextField;
public
class
ServiceTopology
extends
AbstractTopology
{
public
class
ServiceTopology
extends
AbstractTopology
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
NO_FILTER
=
ConsoleLocale
.
getString
(
"no_service_cluster_filter"
);
private
LocationEntity
groupLocationEntity
=
new
LocationEntity
(
120
,
250
,
280
,
0
);
private
LocationEntity
groupLocationEntity
=
new
LocationEntity
(
120
,
250
,
280
,
0
);
private
LocationEntity
nodeLocationEntity
=
new
LocationEntity
(
0
,
0
,
120
,
100
);
private
LocationEntity
nodeLocationEntity
=
new
LocationEntity
(
0
,
0
,
120
,
100
);
private
TopologyEntity
serviceGroupEntity
=
new
TopologyEntity
(
TopologyEntityType
.
SERVICE
,
true
,
true
);
private
TopologyEntity
serviceGroupEntity
=
new
TopologyEntity
(
TopologyEntityType
.
SERVICE
,
true
,
true
);
...
@@ -225,7 +227,7 @@ public class ServiceTopology extends AbstractTopology {
...
@@ -225,7 +227,7 @@ public class ServiceTopology extends AbstractTopology {
String
filter
=
getValidFilter
(
instances
);
String
filter
=
getValidFilter
(
instances
);
String
plugin
=
getValidPlugin
(
instances
);
String
plugin
=
getValidPlugin
(
instances
);
if
(!
StringUtils
.
equals
(
filterId
,
ConsoleConstant
.
NO_FILTER_DESCRIPTION
)
&&
!
StringUtils
.
equals
(
filterId
,
filter
))
{
if
(!
StringUtils
.
equals
(
filterId
,
NO_FILTER
)
&&
!
StringUtils
.
equals
(
filterId
,
filter
))
{
return
;
return
;
}
}
...
@@ -305,7 +307,7 @@ public class ServiceTopology extends AbstractTopology {
...
@@ -305,7 +307,7 @@ public class ServiceTopology extends AbstractTopology {
if
(
filters
.
contains
(
""
))
{
if
(
filters
.
contains
(
""
))
{
filters
.
remove
(
""
);
filters
.
remove
(
""
);
}
}
filters
.
add
(
ConsoleConstant
.
NO_FILTER_DESCRIPTION
);
filters
.
add
(
NO_FILTER
);
return
filters
.
toArray
();
return
filters
.
toArray
();
}
}
...
@@ -514,7 +516,7 @@ public class ServiceTopology extends AbstractTopology {
...
@@ -514,7 +516,7 @@ public class ServiceTopology extends AbstractTopology {
globalFilter
=
filterPanel
.
getFilter
();
globalFilter
=
filterPanel
.
getFilter
();
String
title
=
ConsoleLocale
.
getString
(
"title_service_cluster_gray_release"
);
String
title
=
ConsoleLocale
.
getString
(
"title_service_cluster_gray_release"
);
if
(!
StringUtils
.
equals
(
globalFilter
,
ConsoleConstant
.
NO_FILTER_DESCRIPTION
))
{
if
(!
StringUtils
.
equals
(
globalFilter
,
NO_FILTER
))
{
title
+=
" ["
+
globalFilter
+
"]"
;
title
+=
" ["
+
globalFilter
+
"]"
;
}
}
background
.
setTitle
(
title
);
background
.
setTitle
(
title
);
...
@@ -671,7 +673,7 @@ public class ServiceTopology extends AbstractTopology {
...
@@ -671,7 +673,7 @@ public class ServiceTopology extends AbstractTopology {
setLayout
(
new
FiledLayout
(
FiledLayout
.
COLUMN
,
FiledLayout
.
FULL
,
5
));
setLayout
(
new
FiledLayout
(
FiledLayout
.
COLUMN
,
FiledLayout
.
FULL
,
5
));
add
(
filterComboBox
);
add
(
filterComboBox
);
add
(
new
JLabel
(
ConsoleConstant
.
NO_FILTER_DESCRIPTION
+
" - "
+
ConsoleLocale
.
getString
(
"
no_service_cluster_filter"
)));
add
(
new
JLabel
(
NO_FILTER
+
" - "
+
ConsoleLocale
.
getString
(
"description_
no_service_cluster_filter"
)));
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
View file @
28568c58
...
@@ -14,8 +14,9 @@ rule_control_mode_to_config_center=推送到远程配置中心
...
@@ -14,8 +14,9 @@ rule_control_mode_to_config_center=推送到远程配置中心
rule_control_mode_to_service
=
推送到服务
rule_control_mode_to_service
=
推送到服务
title_service_cluster_gray_release
=
服务集群灰度发布
title_service_cluster_gray_release
=
服务集群灰度发布
service_cluster_filter
=
服务集群过滤
service_cluster_filter
=
服务集群选取
no_service_cluster_filter
=
表示不过滤,执行跨服务集群灰度发布
no_service_cluster_filter
=
全部服务集群
description_no_service_cluster_filter
=
便于执行跨服务集群灰度发布
title_service_gray_router
=
服务灰度路由
title_service_gray_router
=
服务灰度路由
service_list
=
服务列表
service_list
=
服务列表
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
View file @
28568c58
...
@@ -14,8 +14,9 @@ rule_control_mode_to_config_center=\u63a8\u9001\u5230\u8fdc\u7a0b\u914d\u7f6e\u4
...
@@ -14,8 +14,9 @@ rule_control_mode_to_config_center=\u63a8\u9001\u5230\u8fdc\u7a0b\u914d\u7f6e\u4
rule_control_mode_to_service
=
\u
63a8
\u9001\u5230\u
670d
\u
52a1
rule_control_mode_to_service
=
\u
63a8
\u9001\u5230\u
670d
\u
52a1
title_service_cluster_gray_release
=
\u
670d
\u
52a1
\u
96c6
\u
7fa4
\u7070\u
5ea6
\u
53d1
\u
5e03
title_service_cluster_gray_release
=
\u
670d
\u
52a1
\u
96c6
\u
7fa4
\u7070\u
5ea6
\u
53d1
\u
5e03
service_cluster_filter
=
\u
670d
\u
52a1
\u
96c6
\u
7fa4
\u
8fc7
\u
6ee4
service_cluster_filter
=
\u
670d
\u
52a1
\u
96c6
\u
7fa4
\u9009\u
53d6
no_service_cluster_filter
=
\u8868\u
793a
\u
4e0d
\u
8fc7
\u
6ee4
\u
ff0c
\u6267\u
884c
\u
8de8
\u
670d
\u
52a1
\u
96c6
\u
7fa4
\u7070\u
5ea6
\u
53d1
\u
5e03
no_service_cluster_filter
=
\u5168\u
90e8
\u
670d
\u
52a1
\u
96c6
\u
7fa4
description_no_service_cluster_filter
=
\u
4fbf
\u
4e8e
\u6267\u
884c
\u
8de8
\u
670d
\u
52a1
\u
96c6
\u
7fa4
\u7070\u
5ea6
\u
53d1
\u
5e03
title_service_gray_router
=
\u
670d
\u
52a1
\u7070\u
5ea6
\u
8def
\u7531
title_service_gray_router
=
\u
670d
\u
52a1
\u7070\u
5ea6
\u
8def
\u7531
service_list
=
\u
670d
\u
52a1
\u5217\u8868
service_list
=
\u
670d
\u
52a1
\u5217\u8868
...
...
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