use of com.vip.saturn.job.console.domain.JobMigrateInfo in project Saturn by vipshop.
the class JobController method batchTasksMigrateEnabled.
@RequestMapping(value = "batchTasksMigrateEnabled", method = RequestMethod.GET)
public RequestResult batchTasksMigrateEnabled(HttpServletRequest request) {
RequestResult requestResult = new RequestResult();
try {
JobMigrateInfo jobMigrateInfo = jobDimensionService.getAllJobMigrateInfo();
requestResult.setSuccess(true);
requestResult.setObj(jobMigrateInfo);
} catch (Exception e) {
requestResult.setSuccess(false);
requestResult.setMessage(e.getMessage());
}
return requestResult;
}
use of com.vip.saturn.job.console.domain.JobMigrateInfo in project Saturn by vipshop.
the class JobController method tasksMigrateEnabled.
@RequestMapping(value = "tasksMigrateEnabled", method = RequestMethod.GET)
public RequestResult tasksMigrateEnabled(final String jobName, HttpServletRequest request) {
RequestResult requestResult = new RequestResult();
try {
JobMigrateInfo jobMigrateInfo = jobDimensionService.getJobMigrateInfo(jobName);
requestResult.setSuccess(true);
requestResult.setObj(jobMigrateInfo);
} catch (Exception e) {
requestResult.setSuccess(false);
requestResult.setMessage(e.getMessage());
}
return requestResult;
}
Aggregations