Interface QueueOrderingPolicy
- All Known Implementing Classes:
PriorityUtilizationQueueOrderingPolicy
public interface QueueOrderingPolicy
This will be used by
ParentQueue
to decide allocation ordering of child queues.-
Method Summary
Modifier and TypeMethodDescriptiongetAssignmentIterator(String partition) Return an iterator over the collection of CSQueues which orders them for container assignment.Returns configuration name (which will be used to set ordering policyvoid
-
Method Details
-
setQueues
-
getAssignmentIterator
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
-