class RMNodeLabelsManager extends CommonNodeLabelsManager {

  public Resource getQueueResource(String queueName, Set<String> queueLabels,
      Resource clusterResource) {
    try {
      readLock.lock();
      if (queueLabels.contains(ANY)) {
        return clusterResource;
      }
      Queue q = queueCollections.get(queueName);
      if (null == q) {
        return Resources.none();
      }
      return q.resource;
    } finally {
      readLock.unlock();
    }
  }

}