Commit c33e97c8 by huangfusuper

增加暂停服务

parent e640ec86
......@@ -157,6 +157,7 @@ public class JobUtils {
* 获取当前的运行状态
*/
private static final String REQUEST_LOADSTATUS_JAVATASK = "/api/node/loadCurrentStatusByJobName";
private static final String STOP_SCHEDULE_BY_RUNID = "/api/flow/stopScheduleByRunId";
/**
* 当前项目运行环境 jar file
*/
......@@ -190,6 +191,18 @@ public class JobUtils {
}
/**
* 暂停指定的工作流
* @param runId
* @return
*/
public static ResponseResult stopScheduleByRunId (String runId) {
log.debug("-------------暂停当前运行的节点----------------------");
String response = createHttpRequest(STOP_SCHEDULE_BY_RUNID, "runId=" + runId);
log.debug("--------------------获取当前的运行状态,结果为:{}------------------------",response);
return JSON.parseObject(response, ResponseResult.class);
}
/**
* 添加一个任务节点
* @param pluginBeanJobInfo 任务节点的详尽配置
* @return 添加结果
......
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