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()
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.