public final class ContainerManager extends Object
Constructor and Description |
---|
ContainerManager(int scheduleSerThread,
org.apache.reef.driver.evaluator.EvaluatorRequestor evaluatorRequestor,
MessageEnvironment messageEnvironment) |
Modifier and Type | Method and Description |
---|---|
Map<String,ExecutorRepresenter> |
getExecutorRepresenterMap() |
Map<String,ExecutorRepresenter> |
getFailedExecutorRepresenterMap() |
void |
onContainerAllocated(String executorId,
org.apache.reef.driver.evaluator.AllocatedEvaluator allocatedContainer,
org.apache.reef.tang.Configuration executorConfiguration)
Take the necessary actions in container manager once a container a is allocated.
|
void |
onExecutorLaunched(org.apache.reef.driver.context.ActiveContext activeContext)
Initializes master's connection to the executor once launched.
|
void |
onExecutorRemoved(String failedExecutorId) |
void |
requestContainer(int numToRequest,
ResourceSpecification resourceSpecification)
Requests containers/evaluators with the given specifications.
|
Future<Boolean> |
terminate()
Terminates ContainerManager.
|
@Inject public ContainerManager(int scheduleSerThread, org.apache.reef.driver.evaluator.EvaluatorRequestor evaluatorRequestor, MessageEnvironment messageEnvironment)
public void requestContainer(int numToRequest, ResourceSpecification resourceSpecification)
numToRequest
- number of containers to requestresourceSpecification
- containing the specifications ofpublic void onContainerAllocated(String executorId, org.apache.reef.driver.evaluator.AllocatedEvaluator allocatedContainer, org.apache.reef.tang.Configuration executorConfiguration)
executorId
- of the executor to launch on this container.allocatedContainer
- the allocated container.executorConfiguration
- executor related configuration.public void onExecutorLaunched(org.apache.reef.driver.context.ActiveContext activeContext)
activeContext
- for the launched executor.public void onExecutorRemoved(String failedExecutorId)
public Map<String,ExecutorRepresenter> getExecutorRepresenterMap()
public Map<String,ExecutorRepresenter> getFailedExecutorRepresenterMap()
Copyright © 2018. All rights reserved.