private void mergeLocalToBuilder() { if (applicationId != null) { builder.setApplicationId(convertToProtoFormat(this.applicationId)); } }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }
@Override public GetApplicationReportResponseProto getApplicationReport( RpcController arg0, GetApplicationReportRequestProto proto) throws ServiceException { GetApplicationReportRequestPBImpl request = new GetApplicationReportRequestPBImpl(proto); try { GetApplicationReportResponse response = real.getApplicationReport(request); return ((GetApplicationReportResponsePBImpl)response).getProto(); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }
public GetApplicationReportRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
@Override public void setApplicationId(ApplicationId applicationId) { maybeInitBuilder(); if (applicationId == null) builder.clearApplicationId(); this.applicationId = applicationId; }
@Override public ApplicationId getApplicationId() { GetApplicationReportRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.applicationId != null) { return this.applicationId; } if (!p.hasApplicationId()) { return null; } this.applicationId = convertFromProtoFormat(p.getApplicationId()); return this.applicationId; }
@Override public GetApplicationReportResponseProto getApplicationReport( RpcController arg0, GetApplicationReportRequestProto proto) throws ServiceException { GetApplicationReportRequestPBImpl request = new GetApplicationReportRequestPBImpl(proto); try { GetApplicationReportResponse response = real.getApplicationReport(request); return ((GetApplicationReportResponsePBImpl)response).getProto(); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }
public GetApplicationReportRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
@Override public void setApplicationId(ApplicationId applicationId) { maybeInitBuilder(); if (applicationId == null) builder.clearApplicationId(); this.applicationId = applicationId; }
@Override public ApplicationId getApplicationId() { GetApplicationReportRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.applicationId != null) { return this.applicationId; } if (!p.hasApplicationId()) { return null; } this.applicationId = convertFromProtoFormat(p.getApplicationId()); return this.applicationId; }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }
@Override public GetApplicationReportResponseProto getApplicationReport( RpcController arg0, GetApplicationReportRequestProto proto) throws ServiceException { GetApplicationReportRequestPBImpl request = new GetApplicationReportRequestPBImpl(proto); try { GetApplicationReportResponse response = real.getApplicationReport(request); return ((GetApplicationReportResponsePBImpl)response).getProto(); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }
public GetApplicationReportRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
@Override public void setApplicationId(ApplicationId applicationId) { maybeInitBuilder(); if (applicationId == null) builder.clearApplicationId(); this.applicationId = applicationId; }
@Override public ApplicationId getApplicationId() { GetApplicationReportRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.applicationId != null) { return this.applicationId; } if (!p.hasApplicationId()) { return null; } this.applicationId = convertFromProtoFormat(p.getApplicationId()); return this.applicationId; }
private void mergeLocalToBuilder() { if (applicationId != null) { builder.setApplicationId(convertToProtoFormat(this.applicationId)); } }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }