public class DistributedResourceManager extends Object implements ResourceManager
| Constructor and Description |
|---|
DistributedResourceManager(DrillbitContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
cpusPerNode() |
ResourcePoolTree |
getRmPoolTree() |
long |
memoryPerNode()
Returns the memory, in bytes, assigned to each node in a Drill cluster.
|
QueryResourceManager |
newQueryRM(Foreman foreman)
Create a resource manager to execute a query.
|
QueryResourceAllocator |
newResourceAllocator(QueryContext queryContext)
Create a resource manager to prepare or describe a query.
|
public DistributedResourceManager(DrillbitContext context) throws DrillRuntimeException
DrillRuntimeExceptionpublic long memoryPerNode()
ResourceManagermemoryPerNode in interface ResourceManagerpublic int cpusPerNode()
cpusPerNode in interface ResourceManagerpublic QueryResourceAllocator newResourceAllocator(QueryContext queryContext)
ResourceManagernewResourceAllocator in interface ResourceManagerpublic QueryResourceManager newQueryRM(Foreman foreman)
ResourceManagernewQueryRM in interface ResourceManagerforeman - Foreman which manages the executionpublic ResourcePoolTree getRmPoolTree()
public void close()
close in interface ResourceManagerCopyright © 2021 The Apache Software Foundation. All rights reserved.