コード例 #1
0
 public virtual YarnServiceProtos.GetApplicationReportRequestProto GetProto()
 {
     MergeLocalToProto();
     proto = viaProto ? proto : ((YarnServiceProtos.GetApplicationReportRequestProto)builder
                                 .Build());
     viaProto = true;
     return(proto);
 }
コード例 #2
0
 private void MergeLocalToProto()
 {
     if (viaProto)
     {
         MaybeInitBuilder();
     }
     MergeLocalToBuilder();
     proto    = ((YarnServiceProtos.GetApplicationReportRequestProto)builder.Build());
     viaProto = true;
 }
コード例 #3
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual GetApplicationReportResponse GetApplicationReport(GetApplicationReportRequest
                                                                  request)
 {
     YarnServiceProtos.GetApplicationReportRequestProto requestProto = ((GetApplicationReportRequestPBImpl
                                                                         )request).GetProto();
     try
     {
         return(new GetApplicationReportResponsePBImpl(proxy.GetApplicationReport(null, requestProto
                                                                                  )));
     }
     catch (ServiceException e)
     {
         RPCUtil.UnwrapAndThrowException(e);
         return(null);
     }
 }
コード例 #4
0
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual YarnServiceProtos.GetApplicationReportResponseProto GetApplicationReport
            (RpcController arg0, YarnServiceProtos.GetApplicationReportRequestProto proto)
        {
            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);
            }
        }
コード例 #5
0
 public GetApplicationReportRequestPBImpl(YarnServiceProtos.GetApplicationReportRequestProto
                                          proto)
 {
     this.proto = proto;
     viaProto   = true;
 }