@Override public GetJobReportResponseProto getJobReport(RpcController controller, GetJobReportRequestProto proto) throws ServiceException { GetJobReportRequestPBImpl request = new GetJobReportRequestPBImpl(proto); try { GetJobReportResponse response = real.getJobReport(request); return ((GetJobReportResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public GetJobReportResponse getJobReport(GetJobReportRequest request) throws IOException { GetJobReportRequestProto requestProto = ((GetJobReportRequestPBImpl)request).getProto(); try { return new GetJobReportResponsePBImpl(proxy.getJobReport(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
/** * Given the required details (application id and suffix id) for JobId it gives the JobReport * @param appid, the Application Id instance * @param id, the suffix id * @return the Job Report * @throws IOException */ public JobReport getJobReport(ApplicationId appId, int id) throws IOException{ JobId jobId = YarnCommunicatorUtil.getJobId(appId, (int)1); GetJobReportRequestProto proto = GetJobReportRequestProto.getDefaultInstance(); GetJobReportRequest request = new GetJobReportRequestPBImpl(proto); request.setJobId(jobId); GetJobReportResponse jobReportResponse = proxy.getJobReport(request); return jobReportResponse.getJobReport(); }
public GetJobReportRequestPBImpl() { builder = GetJobReportRequestProto.newBuilder(); }
public GetJobReportRequestPBImpl(GetJobReportRequestProto proto) { this.proto = proto; viaProto = true; }
public GetJobReportRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = GetJobReportRequestProto.newBuilder(proto); } viaProto = false; }