Exemplo n.º 1
0
 /// <exception cref="System.IO.IOException"/>
 public virtual GetTaskAttemptReportResponse GetTaskAttemptReport(GetTaskAttemptReportRequest
                                                                  request)
 {
     MRServiceProtos.GetTaskAttemptReportRequestProto requestProto = ((GetTaskAttemptReportRequestPBImpl
                                                                       )request).GetProto();
     try
     {
         return(new GetTaskAttemptReportResponsePBImpl(proxy.GetTaskAttemptReport(null, requestProto
                                                                                  )));
     }
     catch (ServiceException e)
     {
         throw UnwrapAndThrowException(e);
     }
 }
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual MRServiceProtos.GetTaskAttemptReportResponseProto GetTaskAttemptReport
            (RpcController controller, MRServiceProtos.GetTaskAttemptReportRequestProto proto
            )
        {
            GetTaskAttemptReportRequest request = new GetTaskAttemptReportRequestPBImpl(proto
                                                                                        );

            try
            {
                GetTaskAttemptReportResponse response = real.GetTaskAttemptReport(request);
                return(((GetTaskAttemptReportResponsePBImpl)response).GetProto());
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }