コード例 #1
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public override GetApplicationAttemptReportResponse GetApplicationAttemptReport(GetApplicationAttemptReportRequest
                                                                                 request)
 {
     this._enclosing.ResetStartFailoverFlag(true);
     // make sure failover has been triggered
     NUnit.Framework.Assert.IsTrue(this._enclosing.WaittingForFailOver());
     // return fake ApplicationAttemptReport
     return(GetApplicationAttemptReportResponse.NewInstance(this._enclosing.CreateFakeApplicationAttemptReport
                                                                ()));
 }
コード例 #2
0
        /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
        /// <exception cref="System.IO.IOException"/>
        public virtual GetApplicationAttemptReportResponse GetApplicationAttemptReport(GetApplicationAttemptReportRequest
                                                                                       request)
        {
            ApplicationAttemptId appAttemptId = request.GetApplicationAttemptId();

            try
            {
                GetApplicationAttemptReportResponse response = GetApplicationAttemptReportResponse
                                                               .NewInstance(history.GetApplicationAttempt(appAttemptId));
                return(response);
            }
            catch (IOException e)
            {
                Log.Error(e.Message, e);
                throw;
            }
        }