Class AbstractResourceManager
java.lang.Object
org.apache.drill.exec.work.foreman.rm.AbstractResourceManager
- All Implemented Interfaces:
ResourceManager
- Direct Known Subclasses:
ThrottledResourceManager
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
long
Returns the memory, in bytes, assigned to each node in a Drill cluster.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.work.foreman.rm.ResourceManager
close, newQueryRM, newResourceAllocator
-
Field Details
-
context
-
-
Constructor Details
-
AbstractResourceManager
-
-
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 interfaceResourceManager
- Returns:
- the memory, in bytes, available in each Drillbit
-
cpusPerNode
public int cpusPerNode()- Specified by:
cpusPerNode
in interfaceResourceManager
-