/// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
        /// <exception cref="System.IO.IOException"/>
        public virtual GetContainersResponse GetContainers(GetContainersRequest request)
        {
            GetContainersResponse response = GetContainersResponse.NewInstance(new AList <ContainerReport
                                                                                          >(history.GetContainers(request.GetApplicationAttemptId()).Values));

            return(response);
        }
예제 #2
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public override GetContainersResponse GetContainers(GetContainersRequest request)
 {
     this._enclosing.ResetStartFailoverFlag(true);
     // make sure failover has been triggered
     NUnit.Framework.Assert.IsTrue(this._enclosing.WaittingForFailOver());
     // return fake ContainerReports
     return(GetContainersResponse.NewInstance(this._enclosing.CreateFakeContainerReports
                                                  ()));
 }