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
4e2db08f
Commit
4e2db08f
authored
Jul 17, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加图形化灰度发布功能
parent
1708f4ac
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
5 deletions
+42
-5
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
+32
-3
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
+5
-1
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
+5
-1
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
View file @
4e2db08f
...
...
@@ -54,6 +54,7 @@ import com.nepxion.swing.label.JBasicLabel;
import
com.nepxion.swing.layout.filed.FiledLayout
;
import
com.nepxion.swing.layout.table.TableLayout
;
import
com.nepxion.swing.locale.SwingLocale
;
import
com.nepxion.swing.optionpane.JBasicOptionPane
;
import
com.nepxion.swing.textfield.number.JNumberTextField
;
public
class
ServiceTopology
extends
AbstractTopology
{
...
...
@@ -88,7 +89,9 @@ public class ServiceTopology extends AbstractTopology {
toolBar
.
addSeparator
();
toolBar
.
add
(
Box
.
createHorizontalStrut
(
5
));
toolBar
.
add
(
new
JClassicButton
(
createShowTopologyAction
()));
toolBar
.
add
(
new
JClassicButton
(
createXXXAction
()));
toolBar
.
add
(
new
JClassicButton
(
createExecuteGrayReleaseAction
()));
toolBar
.
add
(
new
JClassicButton
(
createRefreshGrayStateAction
()));
toolBar
.
add
(
new
JClassicButton
(
createViewRouterInfoAction
()));
toolBar
.
addSeparator
();
toolBar
.
add
(
createConfigButton
(
true
));
...
...
@@ -249,8 +252,20 @@ public class ServiceTopology extends AbstractTopology {
return
action
;
}
private
JSecurityAction
createXXXAction
()
{
JSecurityAction
action
=
new
JSecurityAction
(
ConsoleLocale
.
getString
(
"show_topology"
),
ConsoleIconFactory
.
getSwingIcon
(
"component/ui_16.png"
),
ConsoleLocale
.
getString
(
"show_topology"
))
{
private
JSecurityAction
createExecuteGrayReleaseAction
()
{
JSecurityAction
action
=
new
JSecurityAction
(
ConsoleLocale
.
getString
(
"execute_gray_release"
),
ConsoleIconFactory
.
getSwingIcon
(
"netbean/action_16.png"
),
ConsoleLocale
.
getString
(
"execute_gray_release"
))
{
private
static
final
long
serialVersionUID
=
1L
;
public
void
execute
(
ActionEvent
e
)
{
}
};
return
action
;
}
private
JSecurityAction
createRefreshGrayStateAction
()
{
JSecurityAction
action
=
new
JSecurityAction
(
ConsoleLocale
.
getString
(
"refresh_gray_state"
),
ConsoleIconFactory
.
getSwingIcon
(
"netbean/rotate_16.png"
),
ConsoleLocale
.
getString
(
"refresh_gray_state"
))
{
private
static
final
long
serialVersionUID
=
1L
;
public
void
execute
(
ActionEvent
e
)
{
...
...
@@ -282,7 +297,21 @@ public class ServiceTopology extends AbstractTopology {
}
updateGroup
(
group
);
}
else
{
JBasicOptionPane
.
showMessageDialog
(
HandleManager
.
getFrame
(
ServiceTopology
.
this
),
"请选择一个服务集群"
,
SwingLocale
.
getString
(
"error"
),
JBasicOptionPane
.
ERROR_MESSAGE
);
}
}
};
return
action
;
}
private
JSecurityAction
createViewRouterInfoAction
()
{
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
;
public
void
execute
(
ActionEvent
e
)
{
}
};
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
View file @
4e2db08f
...
...
@@ -5,7 +5,11 @@ content_bar=工作区
service_control
=
服务治理
service_topology
=
服务拓扑
show_topology
=
显示拓扑图
show_topology
=
显示服务拓扑
execute_gray_release
=
执行灰度发布
refresh_gray_state
=
刷新灰度状态
view_router_info
=
查看路由信息
group_layout
=
组布局
node_layout
=
节点布局
start_x
=
起始点X坐标
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
View file @
4e2db08f
...
...
@@ -5,7 +5,11 @@ content_bar=\u5de5\u4f5c\u533a
service_control
=
\u
670d
\u
52a1
\u
6cbb
\u7406
service_topology
=
\u
670d
\u
52a1
\u
62d3
\u6251
show_topology
=
\u
663e
\u
793a
\u
62d3
\u6251\u
56fe
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
refresh_gray_state
=
\u5237\u
65b0
\u7070\u
5ea6
\u
72b6
\u6001
view_router_info
=
\u
67e5
\u
770b
\u
8def
\u7531\u
4fe1
\u
606f
group_layout
=
\u
7ec4
\u
5e03
\u
5c40
node_layout
=
\u8282\u
70b9
\u
5e03
\u
5c40
start_x
=
\u
8d77
\u
59cb
\u
70b9X
\u5750\u6807
...
...
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