예제 #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;
 }
 /// <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);
     }
 }
        /// <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;
 }