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
6f7eafc9
Commit
6f7eafc9
authored
Jul 17, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加图形化灰度发布功能
parent
60988062
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
20 deletions
+1
-20
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
+1
-18
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
+0
-1
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
+0
-1
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
View file @
6f7eafc9
...
@@ -92,10 +92,10 @@ public class ServiceTopology extends AbstractTopology {
...
@@ -92,10 +92,10 @@ public class ServiceTopology extends AbstractTopology {
toolBar
.
addSeparator
();
toolBar
.
addSeparator
();
toolBar
.
add
(
Box
.
createHorizontalStrut
(
5
));
toolBar
.
add
(
Box
.
createHorizontalStrut
(
5
));
toolBar
.
add
(
new
JClassicButton
(
createShowTopologyAction
()));
toolBar
.
add
(
new
JClassicButton
(
createShowTopologyAction
()));
toolBar
.
addSeparator
();
toolBar
.
add
(
new
JClassicButton
(
createExecuteGrayReleaseAction
()));
toolBar
.
add
(
new
JClassicButton
(
createExecuteGrayReleaseAction
()));
toolBar
.
add
(
new
JClassicButton
(
createRefreshGrayStateAction
()));
toolBar
.
add
(
new
JClassicButton
(
createRefreshGrayStateAction
()));
toolBar
.
addSeparator
();
toolBar
.
addSeparator
();
toolBar
.
add
(
new
JClassicButton
(
createViewServiceInfoAction
()));
toolBar
.
add
(
new
JClassicButton
(
createViewRouterInfoAction
()));
toolBar
.
add
(
new
JClassicButton
(
createViewRouterInfoAction
()));
toolBar
.
addSeparator
();
toolBar
.
addSeparator
();
toolBar
.
add
(
createConfigButton
(
true
));
toolBar
.
add
(
createConfigButton
(
true
));
...
@@ -321,23 +321,6 @@ public class ServiceTopology extends AbstractTopology {
...
@@ -321,23 +321,6 @@ public class ServiceTopology extends AbstractTopology {
return
action
;
return
action
;
}
}
private
JSecurityAction
createViewServiceInfoAction
()
{
JSecurityAction
action
=
new
JSecurityAction
(
ConsoleLocale
.
getString
(
"view_service_info"
),
ConsoleIconFactory
.
getSwingIcon
(
"netbean/stack_16.png"
),
ConsoleLocale
.
getString
(
"view_service_info"
))
{
private
static
final
long
serialVersionUID
=
1L
;
public
void
execute
(
ActionEvent
e
)
{
TNode
node
=
TElementManager
.
getSelectedNode
(
dataBox
);
if
(
node
==
null
)
{
JBasicOptionPane
.
showMessageDialog
(
HandleManager
.
getFrame
(
ServiceTopology
.
this
),
ConsoleLocale
.
getString
(
"select_a_node"
),
SwingLocale
.
getString
(
"warning"
),
JBasicOptionPane
.
WARNING_MESSAGE
);
return
;
}
}
};
return
action
;
}
private
JSecurityAction
createViewRouterInfoAction
()
{
private
JSecurityAction
createViewRouterInfoAction
()
{
JSecurityAction
action
=
new
JSecurityAction
(
ConsoleLocale
.
getString
(
"view_router_info"
),
ConsoleIconFactory
.
getSwingIcon
(
"netbean/close_path_16.png"
),
ConsoleLocale
.
getString
(
"view_router_info"
))
{
JSecurityAction
action
=
new
JSecurityAction
(
ConsoleLocale
.
getString
(
"view_router_info"
),
ConsoleIconFactory
.
getSwingIcon
(
"netbean/close_path_16.png"
),
ConsoleLocale
.
getString
(
"view_router_info"
))
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
View file @
6f7eafc9
...
@@ -8,7 +8,6 @@ service_topology=服务拓扑
...
@@ -8,7 +8,6 @@ service_topology=服务拓扑
show_topology
=
显示服务拓扑
show_topology
=
显示服务拓扑
execute_gray_release
=
执行灰度发布
execute_gray_release
=
执行灰度发布
refresh_gray_state
=
刷新灰度状态
refresh_gray_state
=
刷新灰度状态
view_service_info
=
查看服务信息
view_router_info
=
查看路由信息
view_router_info
=
查看路由信息
get_service_instances_failure
=
获取服务和实例列表失败
get_service_instances_failure
=
获取服务和实例列表失败
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
View file @
6f7eafc9
...
@@ -8,7 +8,6 @@ service_topology=\u670d\u52a1\u62d3\u6251
...
@@ -8,7 +8,6 @@ service_topology=\u670d\u52a1\u62d3\u6251
show_topology
=
\u
663e
\u
793a
\u
670d
\u
52a1
\u
62d3
\u6251
show_topology
=
\u
663e
\u
793a
\u
670d
\u
52a1
\u
62d3
\u6251
execute_gray_release
=
\u6267\u
884c
\u7070\u
5ea6
\u
53d1
\u
5e03
execute_gray_release
=
\u6267\u
884c
\u7070\u
5ea6
\u
53d1
\u
5e03
refresh_gray_state
=
\u5237\u
65b0
\u7070\u
5ea6
\u
72b6
\u6001
refresh_gray_state
=
\u5237\u
65b0
\u7070\u
5ea6
\u
72b6
\u6001
view_service_info
=
\u
67e5
\u
770b
\u
670d
\u
52a1
\u
4fe1
\u
606f
view_router_info
=
\u
67e5
\u
770b
\u
8def
\u7531\u
4fe1
\u
606f
view_router_info
=
\u
67e5
\u
770b
\u
8def
\u7531\u
4fe1
\u
606f
get_service_instances_failure
=
\u
83b7
\u
53d6
\u
670d
\u
52a1
\u
548c
\u
5b9e
\u
4f8b
\u5217\u8868\u5931\u
8d25
get_service_instances_failure
=
\u
83b7
\u
53d6
\u
670d
\u
52a1
\u
548c
\u
5b9e
\u
4f8b
\u5217\u8868\u5931\u
8d25
...
...
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