public interface Environment
Environment object.
The environment provides important services to the task. It keeps track of
setting up the communication channels and provides access to input splits,
memory manager, etc.| Modifier and Type | Method and Description |
|---|---|
InputGate[] |
getAllInputGates() |
ResultPartitionWriter[] |
getAllWriters() |
BroadcastVariableManager |
getBroadcastVariableManager() |
Map<String,FutureTask<Path>> |
getCopyTask() |
int |
getIndexInSubtaskGroup()
Returns the index of this subtask in the subtask group.
|
InputGate |
getInputGate(int index) |
InputSplitProvider |
getInputSplitProvider()
Returns the input split provider assigned to this environment.
|
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.
|
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) |
JobID getJobID()
JobVertexID getJobVertexId()
Configuration getTaskConfiguration()
Configuration getJobConfiguration()
JobGraph.JobGraphint getNumberOfSubtasks()
int getIndexInSubtaskGroup()
InputSplitProvider getInputSplitProvider()
null if no such provider has been assigned to this environment.IOManager getIOManager()
IOManager.IOManager.MemoryManager getMemoryManager()
MemoryManager.MemoryManager.String getTaskName()
String getTaskNameWithSubtasks()
akka.actor.ActorRef getJobManager()
ClassLoader getUserClassLoader()
Map<String,FutureTask<Path>> getCopyTask()
BroadcastVariableManager getBroadcastVariableManager()
ResultPartitionWriter getWriter(int index)
ResultPartitionWriter[] getAllWriters()
InputGate getInputGate(int index)
InputGate[] getAllInputGates()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.