Class RandomQueueSelection
java.lang.Object
org.apache.drill.exec.resourcemgr.config.selectionpolicy.AbstractQueueSelectionPolicy
org.apache.drill.exec.resourcemgr.config.selectionpolicy.RandomQueueSelection
- All Implemented Interfaces:
QueueSelectionPolicy
Randomly selects a queue from the list of all the provided queues. If no pools are provided then it throws
QueueSelectionException
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy
QueueSelectionPolicy.SelectionPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionselectQueue
(List<ResourcePool> allPools, QueryContext queryContext, NodeResources maxResourcePerNode) Methods inherited from class org.apache.drill.exec.resourcemgr.config.selectionpolicy.AbstractQueueSelectionPolicy
getSelectionPolicy
-
Constructor Details
-
RandomQueueSelection
public RandomQueueSelection()
-
-
Method Details
-
selectQueue
public ResourcePool selectQueue(List<ResourcePool> allPools, QueryContext queryContext, NodeResources maxResourcePerNode) throws QueueSelectionException - Specified by:
selectQueue
in interfaceQueueSelectionPolicy
- Specified by:
selectQueue
in classAbstractQueueSelectionPolicy
- Throws:
QueueSelectionException
-