public JobInfo checkJob(String jobId) throws IOException {
    JSONRequest<JobInfo> request =
        new JSONRequest<JobInfo>(service.path("jobs").path(jobId), JobInfo.class, doAs, doAs, context);

    return request.get();
  }
Get Job information
@param jobId templeton job identifier
@return JobInfo object
@throws IOException
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/templeton/client/TempletonApi.java