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()
ResourceManager
memoryPerNode
in interface ResourceManager
public int cpusPerNode()
cpusPerNode
in interface ResourceManager
public QueryResourceAllocator newResourceAllocator(QueryContext queryContext)
ResourceManager
newResourceAllocator
in interface ResourceManager
public QueryResourceManager newQueryRM(Foreman foreman)
ResourceManager
newQueryRM
in interface ResourceManager
foreman
- Foreman which manages the executionpublic void close()
close
in interface ResourceManager
Copyright © 1970 The Apache Software Foundation. All rights reserved.