private void mergeLocalToBuilder() { if (this.applicationReport != null) { builder.setApplicationReport(convertToProtoFormat(this.applicationReport)); } }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }
@Override public GetApplicationReportResponse getApplicationReport( GetApplicationReportRequest request) throws YarnException, IOException { GetApplicationReportRequestProto requestProto = ((GetApplicationReportRequestPBImpl) request).getProto(); try { return new GetApplicationReportResponsePBImpl(proxy.getApplicationReport( null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public GetApplicationReportResponseProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
@Override public void setApplicationReport(ApplicationReport applicationMaster) { maybeInitBuilder(); if (applicationMaster == null) builder.clearApplicationReport(); this.applicationReport = applicationMaster; }
@Override public ApplicationReport getApplicationReport() { GetApplicationReportResponseProtoOrBuilder p = viaProto ? proto : builder; if (this.applicationReport != null) { return this.applicationReport; } if (!p.hasApplicationReport()) { return null; } this.applicationReport = convertFromProtoFormat(p.getApplicationReport()); return this.applicationReport; }
@Override public GetApplicationReportResponse getApplicationReport( GetApplicationReportRequest request) throws YarnException, IOException { GetApplicationReportRequestProto requestProto = ((GetApplicationReportRequestPBImpl) request).getProto(); try { return new GetApplicationReportResponsePBImpl(proxy.getApplicationReport( null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public GetApplicationReportResponseProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
@Override public void setApplicationReport(ApplicationReport applicationMaster) { maybeInitBuilder(); if (applicationMaster == null) builder.clearApplicationReport(); this.applicationReport = applicationMaster; }
@Override public ApplicationReport getApplicationReport() { GetApplicationReportResponseProtoOrBuilder p = viaProto ? proto : builder; if (this.applicationReport != null) { return this.applicationReport; } if (!p.hasApplicationReport()) { return null; } this.applicationReport = convertFromProtoFormat(p.getApplicationReport()); return this.applicationReport; }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }
@Override public GetApplicationReportResponse getApplicationReport( GetApplicationReportRequest request) throws YarnException, IOException { GetApplicationReportRequestProto requestProto = ((GetApplicationReportRequestPBImpl) request).getProto(); try { return new GetApplicationReportResponsePBImpl(proxy.getApplicationReport( null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public GetApplicationReportResponseProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void mergeLocalToBuilder() { if (this.applicationReport != null) { builder.setApplicationReport(convertToProtoFormat(this.applicationReport)); } }
@Override public void setApplicationReport(ApplicationReport applicationMaster) { maybeInitBuilder(); if (applicationMaster == null) builder.clearApplicationReport(); this.applicationReport = applicationMaster; }
@Override public ApplicationReport getApplicationReport() { GetApplicationReportResponseProtoOrBuilder p = viaProto ? proto : builder; if (this.applicationReport != null) { return this.applicationReport; } if (!p.hasApplicationReport()) { return null; } this.applicationReport = convertFromProtoFormat(p.getApplicationReport()); return this.applicationReport; }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }