public Response jobExitCode(@Context HttpHeaders headers,
@Context UriInfo ui,
@PathParam("jobId") String jobId,
@PathParam("fileName") String fileName,
@QueryParam("page") Long page) {
PigJob job = null;
try {
job = getResourceManager().read(jobId);
} catch (ItemNotFound itemNotFound) {
return Response.ok("No such job").status(404).build();
}
try {
String filePath = job.getStatusDir() + "/" + fileName;
LOG.debug("Reading file " + filePath);
FilePaginator paginator = new FilePaginator(filePath, context);
if (page == null)
page = 0L;