/** * Pull one shard */ @RequestMapping(value = SHARD_PULL, method = RequestMethod.POST) public JsonResponse pullShard( @RequestParam("instanceId") Long instanceId, @RequestParam("client") String client){ Response<PullShard> pullResp = jobService.pullJobInstanceShard(instanceId, client); if (!pullResp.isSuccess()){ return JsonResponse.notOk(pullResp.getStatus(), pullResp.getErr()); } return JsonResponse.ok(pullResp.getData()); }