/** * Resume the job to be scheduled for pausing * @param jobId the job id * @return the resume result */ @RequestMapping(value = "/{jobId}/resume", method = RequestMethod.POST) public JsonResponse resumeJob(@PathVariable("jobId") Long jobId){ Response<Boolean> resumeResp = serverService.resumeJob(jobId); if (!resumeResp.isSuccess() || !resumeResp.getData()){ return JsonResponse.notOk(messages.get(resumeResp.getErr())); } return JsonResponse.ok(resumeResp.getData()); }