public class RuntimeEnvironment extends Object implements Environment, Runnable
| Constructor and Description |
|---|
RuntimeEnvironment(akka.actor.ActorRef jobManager,
Task owner,
TaskDeploymentDescriptor tdd,
ClassLoader userCodeClassLoader,
MemoryManager memoryManager,
IOManager ioManager,
InputSplitProvider inputSplitProvider,
BroadcastVariableManager broadcastVariableManager,
NetworkEnvironment networkEnvironment) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCopyTaskForCacheFile(String name,
FutureTask<Path> copyTask) |
void |
addCopyTasksForCacheFile(Map<String,FutureTask<Path>> copyTasks) |
void |
cancelExecution() |
SingleInputGate[] |
getAllInputGates() |
ResultPartitionWriter[] |
getAllWriters() |
BroadcastVariableManager |
getBroadcastVariableManager() |
Map<String,FutureTask<Path>> |
getCopyTask() |
Thread |
getExecutingThread()
Returns the thread, which is assigned to execute the user code.
|
int |
getIndexInSubtaskGroup()
Returns the index of this subtask in the subtask group.
|
InputGate |
getInputGate(int index) |
SingleInputGate |
getInputGateById(IntermediateDataSetID id) |
InputSplitProvider |
getInputSplitProvider()
Returns the input split provider assigned to this environment.
|
AbstractInvokable |
getInvokable()
Returns the task invokable instance.
|
IOManager |
getIOManager()
Returns the current
IOManager. |
Configuration |
getJobConfiguration()
Returns the job configuration object which was attached to the original
JobGraph. |
JobID |
getJobID()
Returns the ID of the job from the original job graph.
|
akka.actor.ActorRef |
getJobManager()
Returns the proxy object for the accumulator protocol.
|
JobVertexID |
getJobVertexId()
Gets the ID of the jobVertex that this task corresponds to.
|
MemoryManager |
getMemoryManager()
Returns the current
MemoryManager. |
int |
getNumberOfSubtasks()
Returns the current number of subtasks the respective task is split into.
|
ResultPartition[] |
getProducedPartitions() |
Configuration |
getTaskConfiguration()
Returns the task configuration object which was attached to the original JobVertex.
|
String |
getTaskName()
Returns the name of the task running in this environment.
|
String |
getTaskNameWithSubtasks() |
ClassLoader |
getUserClassLoader()
Returns the user code class loader
|
ResultPartitionWriter |
getWriter(int index) |
void |
run() |
public RuntimeEnvironment(akka.actor.ActorRef jobManager,
Task owner,
TaskDeploymentDescriptor tdd,
ClassLoader userCodeClassLoader,
MemoryManager memoryManager,
IOManager ioManager,
InputSplitProvider inputSplitProvider,
BroadcastVariableManager broadcastVariableManager,
NetworkEnvironment networkEnvironment)
throws Exception
Exceptionpublic AbstractInvokable getInvokable()
public JobID getJobID()
EnvironmentgetJobID in interface Environmentpublic JobVertexID getJobVertexId()
EnvironmentgetJobVertexId in interface Environmentpublic Thread getExecutingThread()
public void cancelExecution()
public akka.actor.ActorRef getJobManager()
EnvironmentgetJobManager in interface Environmentpublic IOManager getIOManager()
EnvironmentIOManager.getIOManager in interface EnvironmentIOManager.public MemoryManager getMemoryManager()
EnvironmentMemoryManager.getMemoryManager in interface EnvironmentMemoryManager.public BroadcastVariableManager getBroadcastVariableManager()
getBroadcastVariableManager in interface Environmentpublic ResultPartitionWriter getWriter(int index)
getWriter in interface Environmentpublic ResultPartitionWriter[] getAllWriters()
getAllWriters in interface Environmentpublic InputGate getInputGate(int index)
getInputGate in interface Environmentpublic SingleInputGate[] getAllInputGates()
getAllInputGates in interface Environmentpublic ResultPartition[] getProducedPartitions()
public SingleInputGate getInputGateById(IntermediateDataSetID id)
public Configuration getTaskConfiguration()
EnvironmentgetTaskConfiguration in interface Environmentpublic Configuration getJobConfiguration()
EnvironmentJobGraph.getJobConfiguration in interface EnvironmentJobGraphpublic int getNumberOfSubtasks()
EnvironmentgetNumberOfSubtasks in interface Environmentpublic int getIndexInSubtaskGroup()
EnvironmentgetIndexInSubtaskGroup in interface Environmentpublic String getTaskName()
EnvironmentgetTaskName in interface Environmentpublic InputSplitProvider getInputSplitProvider()
EnvironmentgetInputSplitProvider in interface Environmentnull if no such provider has been assigned to this environment.public String getTaskNameWithSubtasks()
getTaskNameWithSubtasks in interface Environmentpublic ClassLoader getUserClassLoader()
EnvironmentgetUserClassLoader in interface Environmentpublic void addCopyTasksForCacheFile(Map<String,FutureTask<Path>> copyTasks)
public void addCopyTaskForCacheFile(String name, FutureTask<Path> copyTask)
public Map<String,FutureTask<Path>> getCopyTask()
getCopyTask in interface EnvironmentCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.