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
6fbd17d5
Commit
6fbd17d5
authored
Jul 17, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加图形化灰度发布功能
parent
20b518f3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
+22
-2
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/RouterTopology.java
+19
-1
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
+1
-1
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
+1
-0
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
+1
-0
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/RouterTopology.java
View file @
6fbd17d5
...
...
@@ -72,7 +72,7 @@ public class RouterTopology extends AbstractTopology {
}
private
void
initializeToolBar
()
{
textField
.
setPreferredSize
(
new
Dimension
(
65
5
,
textField
.
getPreferredSize
().
height
));
textField
.
setPreferredSize
(
new
Dimension
(
65
0
,
textField
.
getPreferredSize
().
height
));
JToolBar
toolBar
=
getGraph
().
getToolbar
();
toolBar
.
addSeparator
();
...
...
@@ -83,6 +83,7 @@ public class RouterTopology extends AbstractTopology {
toolBar
.
add
(
new
JClassicButton
(
createAddServiceAction
()));
toolBar
.
add
(
textField
);
toolBar
.
add
(
new
JClassicButton
(
createExecuteRouterAction
()));
toolBar
.
add
(
new
JClassicButton
(
createClearRouterAction
()));
ButtonManager
.
updateUI
(
toolBar
);
}
...
...
@@ -181,6 +182,9 @@ public class RouterTopology extends AbstractTopology {
public
void
setInstance
(
InstanceEntity
instance
)
{
this
.
instance
=
instance
;
textField
.
setText
(
""
);
dataBox
.
clear
();
}
private
JSecurityAction
createAddServiceAction
()
{
...
...
@@ -221,4 +225,17 @@ public class RouterTopology extends AbstractTopology {
return
action
;
}
private
JSecurityAction
createClearRouterAction
()
{
JSecurityAction
action
=
new
JSecurityAction
(
ConsoleLocale
.
getString
(
"clear_router"
),
ConsoleIconFactory
.
getSwingIcon
(
"paint.png"
),
ConsoleLocale
.
getString
(
"clear_router"
))
{
private
static
final
long
serialVersionUID
=
1L
;
public
void
execute
(
ActionEvent
e
)
{
textField
.
setText
(
""
);
dataBox
.
clear
();
}
};
return
action
;
}
}
\ No newline at end of file
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
View file @
6fbd17d5
...
...
@@ -336,7 +336,7 @@ public class ServiceTopology extends AbstractTopology {
if
(
routerTopology
==
null
)
{
routerTopology
=
new
RouterTopology
();
routerTopology
.
setPreferredSize
(
new
Dimension
(
12
0
0
,
900
));
routerTopology
.
setPreferredSize
(
new
Dimension
(
12
8
0
,
900
));
}
routerTopology
.
setServices
(
instanceMap
.
keySet
().
toArray
());
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
View file @
6fbd17d5
...
...
@@ -12,6 +12,7 @@ view_router_info=查看路由信息
service_list
=
服务列表
execute_router
=
执行路由
clear_router
=
清除路由
router_path_invalid
=
路由路径不能为空
get_service_instances_failure
=
获取服务和实例列表失败
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
View file @
6fbd17d5
...
...
@@ -12,6 +12,7 @@ view_router_info=\u67e5\u770b\u8def\u7531\u4fe1\u606f
service_list
=
\u
670d
\u
52a1
\u5217\u8868
execute_router
=
\u6267\u
884c
\u
8def
\u7531
clear_router
=
\u
6e05
\u9664\u
8def
\u7531
router_path_invalid
=
\u
8def
\u7531\u
8def
\u
5f84
\u
4e0d
\u
80fd
\u
4e3a
\u
7a7a
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