Beispiel #1
0
 public virtual YarnServiceProtos.GetContainerReportRequestProto GetProto()
 {
     MergeLocalToProto();
     proto = viaProto ? proto : ((YarnServiceProtos.GetContainerReportRequestProto)builder
                                 .Build());
     viaProto = true;
     return(proto);
 }
Beispiel #2
0
 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);
            }
        }
Beispiel #5
0
 public GetContainerReportRequestPBImpl(YarnServiceProtos.GetContainerReportRequestProto
                                        proto)
 {
     this.proto = proto;
     viaProto   = true;
 }