All Known Implementing Classes:
PriorityUtilizationQueueOrderingPolicy

public interface QueueOrderingPolicy
This will be used by ParentQueue to decide allocation ordering of child queues.
  • Method Details

    • setQueues

      void setQueues(List<CSQueue> queues)
    • getAssignmentIterator

      Iterator<CSQueue> getAssignmentIterator(String partition)
      Return an iterator over the collection of CSQueues which orders them for container assignment. Please note that, to avoid queue's set updated during sorting / iterating. Caller need to make sure parent queue's read lock is properly acquired.
      Parameters:
      partition - nodePartition
      Returns:
      iterator of queues to allocate
    • getConfigName

      String getConfigName()
      Returns configuration name (which will be used to set ordering policy
      Returns:
      configuration name