public virtual YarnServiceProtos.GetContainerReportRequestProto GetProto() { MergeLocalToProto(); proto = viaProto ? proto : ((YarnServiceProtos.GetContainerReportRequestProto)builder .Build()); viaProto = true; return(proto); }
private void MergeLocalToProto() { if (viaProto) { MaybeInitBuilder(); } MergeLocalToBuilder(); proto = ((YarnServiceProtos.GetContainerReportRequestProto)builder.Build()); viaProto = true; }
/// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> /// <exception cref="System.IO.IOException"/> public virtual GetContainerReportResponse GetContainerReport(GetContainerReportRequest request) { YarnServiceProtos.GetContainerReportRequestProto requestProto = ((GetContainerReportRequestPBImpl )request).GetProto(); try { return(new GetContainerReportResponsePBImpl(proxy.GetContainerReport(null, requestProto ))); } catch (ServiceException e) { RPCUtil.UnwrapAndThrowException(e); return(null); } }
/// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual YarnServiceProtos.GetContainerReportResponseProto GetContainerReport (RpcController controller, YarnServiceProtos.GetContainerReportRequestProto proto ) { GetContainerReportRequestPBImpl request = new GetContainerReportRequestPBImpl(proto ); try { GetContainerReportResponse response = real.GetContainerReport(request); return(((GetContainerReportResponsePBImpl)response).GetProto()); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }
public GetContainerReportRequestPBImpl(YarnServiceProtos.GetContainerReportRequestProto proto) { this.proto = proto; viaProto = true; }