Commit 74122e69 by guo_minglei@163.com

添加工具

parent 05778e72
...@@ -139,6 +139,10 @@ public class JobUtils { ...@@ -139,6 +139,10 @@ public class JobUtils {
*/ */
private static final String REQUEST_RUN_JAVATASK = "/api/node/runJavaTask"; private static final String REQUEST_RUN_JAVATASK = "/api/node/runJavaTask";
/** /**
* 获取当前的运行状态
*/
private static final String REQUEST_LOADSTATUS_JAVATASK = "/api/node/loadCurrentStatusByJobName";
/**
* 当前项目运行环境 jar file * 当前项目运行环境 jar file
*/ */
private static final String OPERATING_ENVIRONMENT_JAR = "jar"; private static final String OPERATING_ENVIRONMENT_JAR = "jar";
...@@ -593,6 +597,18 @@ public class JobUtils { ...@@ -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(目录) * 判断当前的运行环境是什么 jar : table of Contents(目录)
* @return jar -->true 目录 -->false * @return jar -->true 目录 -->false
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment