public final class ComputeEnvironment
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,ExecutionPlan> |
build(ComputeGraph... computeGraphs) |
TaskExecutor |
buildAndExecute(ComputeGraphBuilder computeGraphBuilder)
for single task graph runs
|
void |
close()
Closes the task environment
|
TaskExecutor |
getTaskExecutor()
Use task executor for fine grained task graph manipulations.
|
static ComputeEnvironment |
init(WorkerEnvironment workerEnv)
Initialize the compute environment with the worker environment
|
ComputeGraphBuilder |
newTaskGraph(OperationMode operationMode)
Create a compute graph builder
|
ComputeGraphBuilder |
newTaskGraph(OperationMode operationMode,
java.lang.String name)
Create a new task graph builder with a name
|
public TaskExecutor getTaskExecutor()
public TaskExecutor buildAndExecute(ComputeGraphBuilder computeGraphBuilder)
public ComputeGraphBuilder newTaskGraph(OperationMode operationMode)
operationMode
- specify the operation modepublic ComputeGraphBuilder newTaskGraph(OperationMode operationMode, java.lang.String name)
operationMode
- operation nodename
- name of the graphpublic static ComputeEnvironment init(WorkerEnvironment workerEnv)
workerEnv
- worker environmentpublic void close()
This method should be called at the end of worker
public java.util.Map<java.lang.String,ExecutionPlan> build(ComputeGraph... computeGraphs)