Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
74122e69
Commit
74122e69
authored
Apr 16, 2020
by
guo_minglei@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加工具
parent
05778e72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
JobUtils.java
...xecutor-plugin/src/main/java/com/byit/utils/JobUtils.java
+16
-0
No files found.
byit-myth-executor/myth-executor-plugin/src/main/java/com/byit/utils/JobUtils.java
View file @
74122e69
...
...
@@ -139,6 +139,10 @@ public class JobUtils {
*/
private
static
final
String
REQUEST_RUN_JAVATASK
=
"/api/node/runJavaTask"
;
/**
* 获取当前的运行状态
*/
private
static
final
String
REQUEST_LOADSTATUS_JAVATASK
=
"/api/node/loadCurrentStatusByJobName"
;
/**
* 当前项目运行环境 jar file
*/
private
static
final
String
OPERATING_ENVIRONMENT_JAR
=
"jar"
;
...
...
@@ -593,6 +597,18 @@ public class JobUtils {
}
/**
* 获取当前的运行状态
* @param jobNames
* @return
*/
public
static
ResponseResult
loadCurrentStatusByJobName
(
String
jobNames
){
log
.
info
(
"-------------获取当前的运行状态----------------------"
);
String
response
=
createHttpRequest
(
REQUEST_LOADSTATUS_JAVATASK
,
"jobNames="
+
jobNames
);
log
.
info
(
"--------------------获取当前的运行状态,结果为:{}------------------------"
,
response
);
return
JSON
.
parseObject
(
response
,
ResponseResult
.
class
);
}
/**
* 判断当前的运行环境是什么 jar : table of Contents(目录)
* @return jar -->true 目录 -->false
*/
...
...
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