Exemple #1
0
        /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
        /// <exception cref="System.IO.IOException"/>
        public override ApplicationAttemptReport GetApplicationAttemptReport(ApplicationAttemptId
                                                                             applicationAttemptId)
        {
            GetApplicationAttemptReportRequest request = GetApplicationAttemptReportRequest.NewInstance
                                                             (applicationAttemptId);
            GetApplicationAttemptReportResponse response = ahsClient.GetApplicationAttemptReport
                                                               (request);

            return(response.GetApplicationAttemptReport());
        }
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual YarnServiceProtos.GetApplicationAttemptReportResponseProto GetApplicationAttemptReport
            (RpcController controller, YarnServiceProtos.GetApplicationAttemptReportRequestProto
            proto)
        {
            GetApplicationAttemptReportRequestPBImpl request = new GetApplicationAttemptReportRequestPBImpl
                                                                   (proto);

            try
            {
                GetApplicationAttemptReportResponse response = real.GetApplicationAttemptReport(request
                                                                                                );
                return(((GetApplicationAttemptReportResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }