class PigResource {

	@GET
	@Path("request/{requestId}/status")
	@Produces( {MediaType.TEXT_PLAIN} )
	public Response getRequestStatus(@PathParam("requestId") String requestId) throws IOException {
		logger.info("Request for retrieving status for " + requestId);
		return Response.ok()
		    .entity(
		        PigJobServerImpl.getPigJobServer().getRequestStatus(requestId)
		    ).build();
	}

}