/// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
        /// <exception cref="System.IO.IOException"/>
        public virtual GetApplicationsResponse GetApplications(GetApplicationsRequest request
                                                               )
        {
            GetApplicationsResponse response = GetApplicationsResponse.NewInstance(new AList <
                                                                                       ApplicationReport>(history.GetApplications(request.GetLimit()).Values));

            return(response);
        }
Ejemplo n.º 2
0
                /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
                public override GetApplicationsResponse GetApplications(GetApplicationsRequest request
                                                                        )
                {
                    this._enclosing.ResetStartFailoverFlag(true);
                    // make sure failover has been triggered
                    NUnit.Framework.Assert.IsTrue(this._enclosing.WaittingForFailOver());
                    // create GetApplicationsResponse with fake applicationList
                    GetApplicationsResponse response = GetApplicationsResponse.NewInstance(this._enclosing
                                                                                           .CreateFakeAppReports());

                    return(response);
                }