|
|
@ -49,22 +49,20 @@ public class JobInfoController { |
|
|
|
@RequestMapping("/add") |
|
|
|
@RequestMapping("/add") |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
|
public ReturnT<String> add(int jobGroup, String jobCron, String jobDesc, String author, String alarmEmail, |
|
|
|
public ReturnT<String> add(int jobGroup, String jobCron, String jobDesc, String author, String alarmEmail, |
|
|
|
String executorAppname, String executorAddress, String executorHandler, String executorParam, |
|
|
|
String executorHandler, String executorParam, int glueSwitch, String glueSource, String glueRemark, String childJobKey) { |
|
|
|
int glueSwitch, String glueSource, String glueRemark, String childJobKey) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return xxlJobService.add(jobGroup, jobCron, jobDesc, author, alarmEmail, |
|
|
|
return xxlJobService.add(jobGroup, jobCron, jobDesc, author, alarmEmail, |
|
|
|
executorAddress, executorHandler, executorParam, |
|
|
|
executorHandler, executorParam, |
|
|
|
glueSwitch, glueSource, glueRemark, childJobKey); |
|
|
|
glueSwitch, glueSource, glueRemark, childJobKey); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/reschedule") |
|
|
|
@RequestMapping("/reschedule") |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
|
public ReturnT<String> reschedule(int jobGroup, String jobName, String jobCron, String jobDesc, String author, String alarmEmail, |
|
|
|
public ReturnT<String> reschedule(int jobGroup, String jobName, String jobCron, String jobDesc, String author, String alarmEmail, |
|
|
|
String executorAppname, String executorAddress, String executorHandler, String executorParam, |
|
|
|
String executorHandler, String executorParam, int glueSwitch, String childJobKey) { |
|
|
|
int glueSwitch, String childJobKey) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return xxlJobService.reschedule(jobGroup, jobName, jobCron, jobDesc, author, alarmEmail, |
|
|
|
return xxlJobService.reschedule(jobGroup, jobName, jobCron, jobDesc, author, alarmEmail, |
|
|
|
executorAddress, executorHandler, executorParam, glueSwitch, childJobKey); |
|
|
|
executorHandler, executorParam, glueSwitch, childJobKey); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/remove") |
|
|
|
@RequestMapping("/remove") |
|
|
|