Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
qinchao
7 years ago
Commit
59898441ac5372448c6267c67d7494d6b93c9593
1 parent
36707168
docker发布
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
monitor-ui-common/src/main/java/com/ui/project/Platform.java
monitor-ui-common/src/main/java/com/ui/project/ProjectOnline.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/WorkSystemCtrl.java
monitor-ui-common/src/main/java/com/ui/project/Platform.java
View file @
5989844
...
...
@@ -15,11 +15,12 @@ public class Platform {
public
static
final
String
NODE
=
"NODE"
;
public
static
final
String
DOCKER
=
"DOCKER"
;
static
{
list
.
add
(
"JAVA"
);
list
.
add
(
"PHP"
);
list
.
add
(
"NODE"
);
list
.
add
(
"DOCKER"
);
}
public
static
List
<
String
>
getPlatforms
(){
...
...
monitor-ui-common/src/main/java/com/ui/project/ProjectOnline.java
View file @
5989844
...
...
@@ -8,7 +8,7 @@ public class ProjectOnline {
private
static
List
<
Project
>
JAVA_LIST
=
new
ArrayList
<
Project
>();
private
static
List
<
Project
>
PHP_LIST
=
new
ArrayList
<
Project
>();
private
static
List
<
Project
>
NODE_LIST
=
new
ArrayList
<
Project
>();
private
static
List
<
Project
>
DOCKER_LIST
=
new
ArrayList
<
Project
>();
static
{
JAVA_LIST
.
add
(
new
Project
(
"1"
,
"yoho-sns"
,
"125"
,
"yoho30"
));
...
...
@@ -83,6 +83,9 @@ public class ProjectOnline {
NODE_LIST
.
add
(
new
Project
(
""
,
"yohobuy-portal-fe2"
,
""
,
""
));
NODE_LIST
.
add
(
new
Project
(
""
,
"yohobuy-shop"
,
""
,
""
));
NODE_LIST
.
add
(
new
Project
(
""
,
"yoho-shop-manage"
,
""
,
""
));
DOCKER_LIST
.
add
(
new
Project
(
""
,
"yohoblk-wap"
,
""
,
""
));
}
...
...
@@ -90,6 +93,10 @@ public class ProjectOnline {
return
JAVA_LIST
;
}
public
static
List
<
Project
>
getDockerList
()
{
return
DOCKER_LIST
;
}
public
static
List
<
Project
>
getPhpList
()
{
return
PHP_LIST
;
}
...
...
monitor-ui-ctrl/src/main/java/com/ui/ctrl/WorkSystemCtrl.java
View file @
5989844
...
...
@@ -105,6 +105,8 @@ public class WorkSystemCtrl {
}
else
if
(
Platform
.
NODE
.
equals
(
platform
))
{
String
result
=
httpRestClient
.
get
(
"http://172.31.16.167:8883/node/getProjects"
,
String
.
class
,
null
);
return
JSON
.
parseObject
(
result
,
List
.
class
);
}
else
if
(
Platform
.
DOCKER
.
equals
(
platform
))
{
return
ProjectOnline
.
getDockerList
();
}
return
null
;
}
...
...
Please
register
or
login
to post a comment