Class AbstractResourceManager

java.lang.Object
org.apache.drill.exec.work.foreman.rm.AbstractResourceManager
All Implemented Interfaces:
ResourceManager
Direct Known Subclasses:
ThrottledResourceManager

public abstract class AbstractResourceManager extends Object implements ResourceManager
Abstract base class for a resource manager. Handles tasks common to all resource managers: learning the resources available on this Drillbit. In the current version, Drillbits must be symmetrical, so that knowing the resources on one node is sufficient to know resources available on all nodes.
  • Field Details

  • Constructor Details

    • AbstractResourceManager

      public AbstractResourceManager(DrillbitContext context)
  • Method Details

    • memoryPerNode

      public long memoryPerNode()
      Description copied from interface: ResourceManager
      Returns the memory, in bytes, assigned to each node in a Drill cluster. Drill requires that nodes are symmetrical. So, knowing the memory on any one node also gives the memory on all other nodes.
      Specified by:
      memoryPerNode in interface ResourceManager
      Returns:
      the memory, in bytes, available in each Drillbit
    • cpusPerNode

      public int cpusPerNode()
      Specified by:
      cpusPerNode in interface ResourceManager