Example #1
0
  @Override
  public List<QueueInfo> getRootQueueInfos() throws YarnException, IOException {
    List<QueueInfo> queues = new ArrayList<QueueInfo>();

    QueueInfo rootQueue =
        rmClient.getQueueInfo(getQueueInfoRequest(ROOT, false, true, true)).getQueueInfo();
    getChildQueues(rootQueue, queues, false);
    return queues;
  }
Example #2
0
  @Override
  public List<QueueInfo> getChildQueueInfos(String parent) throws YarnException, IOException {
    List<QueueInfo> queues = new ArrayList<QueueInfo>();

    QueueInfo parentQueue =
        rmClient.getQueueInfo(getQueueInfoRequest(parent, false, true, false)).getQueueInfo();
    getChildQueues(parentQueue, queues, true);
    return queues;
  }
Example #3
0
 @Override
 public QueueInfo getQueueInfo(String queueName) throws YarnException, IOException {
   GetQueueInfoRequest request = getQueueInfoRequest(queueName, true, false, false);
   Records.newRecord(GetQueueInfoRequest.class);
   return rmClient.getQueueInfo(request).getQueueInfo();
 }