Interface ResourcePool
- All Known Implementing Classes:
ResourcePoolImpl
public interface ResourcePool
Interface which defines an implementation of ResourcePool configuration for
ResourcePoolTree
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
getPoolMemoryInMB
(int numClusterNodes) double
Only valid for leaf pool.boolean
boolean
void
visitAndSelectPool
(QueueAssignmentResult assignmentResult, QueryContext queryContext) Evaluates this pool selector to see if the query can be admitted in this pool.
-
Method Details
-
getPoolName
String getPoolName() -
isLeafPool
boolean isLeafPool() -
isDefaultPool
boolean isDefaultPool() -
getMaxQueryMemoryPerNode
long getMaxQueryMemoryPerNode() -
visitAndSelectPool
Evaluates this pool selector to see if the query can be admitted in this pool. If yes then evaluates all the child pools selectors as well. During traversal it builds the QueueAssignment result which consists of all the selected leaf pools and all rejected intermediate pools.- Parameters:
assignmentResult
-queryContext
-
-
getPoolMemoryInMB
long getPoolMemoryInMB(int numClusterNodes) -
getQueryQueue
QueryQueueConfig getQueryQueue()Only valid for leaf pool.- Returns:
- Returns queue configuration assigned to this leaf pool
-
getFullPath
String getFullPath()- Returns:
- Full path of the resource pool from root to this pool
-
getParentPool
ResourcePool getParentPool() -
getChildPools
List<ResourcePool> getChildPools() -
getSelector
ResourcePoolSelector getSelector()
-