public class DynamicResourceManager extends Object implements ResourceManager
| Modifier and Type | Field and Description |
|---|---|
long |
nextUpdateTime |
int |
recheckDelayMs |
| Constructor and Description |
|---|
DynamicResourceManager(DrillbitContext context) |
| Modifier and Type | Method and Description |
|---|---|
ResourceManager |
activeRM() |
void |
close() |
int |
cpusPerNode() |
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 long nextUpdateTime
public final int recheckDelayMs
public DynamicResourceManager(DrillbitContext context)
public ResourceManager activeRM()
public 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 void close()
close in interface ResourceManagerCopyright © 2017 The Apache Software Foundation. All rights reserved.