public class DefaultResourceManager extends Object implements ResourceManager
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultResourceManager.DefaultQueryResourceManager |
static class |
DefaultResourceManager.DefaultResourceAllocator |
| Modifier and Type | Field and Description |
|---|---|
int |
cpusPerNode |
long |
memoryPerNode |
| Constructor and Description |
|---|
DefaultResourceManager() |
| Modifier and Type | Method and Description |
|---|---|
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 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.