예제 #1
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public override QueueInfo GetQueueInfo(string queueName)
 {
     Org.Apache.Hadoop.Yarn.Api.Protocolrecords.GetQueueInfoRequest request = GetQueueInfoRequest
                                                                                  (queueName, true, false, false);
     Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <Org.Apache.Hadoop.Yarn.Api.Protocolrecords.GetQueueInfoRequest
                                                    >();
     return(rmClient.GetQueueInfo(request).GetQueueInfo());
 }
예제 #2
0
        public static GetQueueInfoRequest NewInstance(string queueName, bool includeApplications
                                                      , bool includeChildQueues, bool recursive)
        {
            GetQueueInfoRequest request = Records.NewRecord <GetQueueInfoRequest>();

            request.SetQueueName(queueName);
            request.SetIncludeApplications(includeApplications);
            request.SetIncludeChildQueues(includeChildQueues);
            request.SetRecursive(recursive);
            return(request);
        }
예제 #3
0
 private Org.Apache.Hadoop.Yarn.Api.Protocolrecords.GetQueueInfoRequest GetQueueInfoRequest
     (string queueName, bool includeApplications, bool includeChildQueues, bool recursive
     )
 {
     Org.Apache.Hadoop.Yarn.Api.Protocolrecords.GetQueueInfoRequest request = Org.Apache.Hadoop.Yarn.Util.Records
                                                                              .NewRecord <Org.Apache.Hadoop.Yarn.Api.Protocolrecords.GetQueueInfoRequest>();
     request.SetQueueName(queueName);
     request.SetIncludeApplications(includeApplications);
     request.SetIncludeChildQueues(includeChildQueues);
     request.SetRecursive(recursive);
     return(request);
 }