Interface ResourcePool

All Known Implementing Classes:
ResourcePoolImpl

public interface ResourcePool
Interface which defines an implementation of ResourcePool configuration for ResourcePoolTree
  • Method Details

    • getPoolName

      String getPoolName()
    • isLeafPool

      boolean isLeafPool()
    • isDefaultPool

      boolean isDefaultPool()
    • getMaxQueryMemoryPerNode

      long getMaxQueryMemoryPerNode()
    • visitAndSelectPool

      void visitAndSelectPool(QueueAssignmentResult assignmentResult, QueryContext queryContext)
      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 -
    • getPoolMemoryShare

      double getPoolMemoryShare()
      Returns:
      Percentage of memory share assigned to this pool
    • 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()