Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
37692307
"src/git@ustchcs.com:gujinli1118/MCMS.git" did not exist on "6d465cd0f58acb41040562f93de92b488477ad5e"
Commit
37692307
authored
Dec 22, 2019
by
Elune
Browse files
代码优化
parent
4e0deae1
Changes
6
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/AppService.java
View file @
37692307
...
...
@@ -61,6 +61,7 @@ public interface AppService {
* 导出数据
* @param queryAll /
* @param response /
* @throws IOException /
*/
void
download
(
List
<
AppDto
>
queryAll
,
HttpServletResponse
response
)
throws
IOException
;
}
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/DatabaseService.java
View file @
37692307
...
...
@@ -68,6 +68,7 @@ public interface DatabaseService {
* 导出数据
* @param queryAll /
* @param response /
* @throws IOException e
*/
void
download
(
List
<
DatabaseDto
>
queryAll
,
HttpServletResponse
response
)
throws
IOException
;
}
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/DeployHistoryService.java
View file @
37692307
...
...
@@ -54,6 +54,7 @@ public interface DeployHistoryService {
* 导出数据
* @param queryAll /
* @param response /
* @throws IOException /
*/
void
download
(
List
<
DeployHistoryDto
>
queryAll
,
HttpServletResponse
response
)
throws
IOException
;
}
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/DeployService.java
View file @
37692307
...
...
@@ -96,6 +96,7 @@ public interface DeployService {
* 导出数据
* @param queryAll /
* @param response /
* @throws IOException /
*/
void
download
(
List
<
DeployDto
>
queryAll
,
HttpServletResponse
response
)
throws
IOException
;
}
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/ServerDeployService.java
View file @
37692307
...
...
@@ -75,6 +75,7 @@ public interface ServerDeployService {
* 导出数据
* @param queryAll /
* @param response /
* @throws IOException /
*/
void
download
(
List
<
ServerDeployDto
>
queryAll
,
HttpServletResponse
response
)
throws
IOException
;
}
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/impl/DeployServiceImpl.java
View file @
37692307
...
...
@@ -48,6 +48,9 @@ public class DeployServiceImpl implements DeployService {
private
final
DeployHistoryService
deployHistoryService
;
// 循环次数
private
final
Integer
count
=
30
;
public
DeployServiceImpl
(
DeployRepository
deployRepository
,
DeployMapper
deployMapper
,
ServerDeployService
serverDeployService
,
DeployHistoryService
deployHistoryService
)
{
this
.
deployRepository
=
deployRepository
;
this
.
deployMapper
=
deployMapper
;
...
...
@@ -158,7 +161,7 @@ public class DeployServiceImpl implements DeployService {
int
i
=
0
;
boolean
result
=
false
;
// 由于启动应用需要时间,所以需要循环获取状态,如果超过30次,则认为是启动失败
while
(
i
++
<
30
){
while
(
i
++
<
count
){
result
=
checkIsRunningStatus
(
port
,
executeShellUtil
);
if
(
result
){
break
;
...
...
@@ -286,7 +289,7 @@ public class DeployServiceImpl implements DeployService {
int
i
=
0
;
boolean
result
=
false
;
// 由于启动应用需要时间,所以需要循环获取状态,如果超过30次,则认为是启动失败
while
(
i
++
<
30
){
while
(
i
++
<
count
){
result
=
checkIsRunningStatus
(
app
.
getPort
(),
executeShellUtil
);
if
(
result
){
break
;
...
...
@@ -371,7 +374,7 @@ public class DeployServiceImpl implements DeployService {
int
i
=
0
;
boolean
result
=
false
;
// 由于启动应用需要时间,所以需要循环获取状态,如果超过30次,则认为是启动失败
while
(
i
++
<
30
){
while
(
i
++
<
count
){
result
=
checkIsRunningStatus
(
app
.
getPort
(),
executeShellUtil
);
if
(
result
){
break
;
...
...
Write
Preview
Supports
Markdown
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