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 |
|---|---|
<T extends IOReadableWritable> |
createAndRegisterInputGate()
Creates a new InputGate and registers it with the Environment.
|
OutputGate |
createAndRegisterOutputGate()
Creates a new OutputGate and registers it with the Environment.
|
AccumulatorProtocol |
getAccumulatorProtocolProxy()
Returns the proxy object for the accumulator protocol.
|
BroadcastVariableManager |
getBroadcastVariableManager() |
Map<String,FutureTask<Path>> |
getCopyTask() |
int |
getCurrentNumberOfSubtasks()
Returns the current number of subtasks the respective task is split into.
|
int |
getIndexInSubtaskGroup()
Returns the index of this subtask in the subtask group.
|
Set<ChannelID> |
getInputChannelIDs()
Returns the IDs of all input channels connected to this environment.
|
Set<ChannelID> |
getInputChannelIDsOfGate(GateID gateID)
Returns the IDs of all the input channels connected to the gate with the given ID.
|
Set<GateID> |
getInputGateIDs()
Returns the IDs of all input gates connected to this environment.
|
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.
|
JobVertexID |
getJobVertexId()
Gets the ID of the jobVertex that this task corresponds to.
|
MemoryManager |
getMemoryManager()
Returns the current
MemoryManager. |
GateID |
getNextUnboundInputGateID()
Returns the next unbound input gate ID or
null if no such ID exists |
int |
getNumberOfInputChannels()
Returns the number of input channels attached to this environment.
|
int |
getNumberOfInputGates()
Returns the number of input gates registered with this environment.
|
int |
getNumberOfOutputChannels()
Returns the number of output channels attached to this environment.
|
int |
getNumberOfOutputGates()
Returns the number of output gates registered with this environment.
|
BufferProvider |
getOutputBufferProvider()
Returns the buffer provider for this environment.
|
Set<ChannelID> |
getOutputChannelIDs()
Returns the IDs of all output channels connected to this environment.
|
Set<ChannelID> |
getOutputChannelIDsOfGate(GateID gateID)
Returns the IDs of all the output channels connected to the gate with the given ID.
|
Set<GateID> |
getOutputGateIDs()
Returns the IDs of all output gates connected to this environment.
|
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.
|
ClassLoader |
getUserClassLoader()
Returns the user code class loader
|
JobID getJobID()
JobVertexID getJobVertexId()
Configuration getTaskConfiguration()
Configuration getJobConfiguration()
JobGraph.JobGraphint getCurrentNumberOfSubtasks()
int getIndexInSubtaskGroup()
InputSplitProvider getInputSplitProvider()
null if no such provider has been assigned to this environment.MemoryManager getMemoryManager()
MemoryManager.MemoryManager.String getTaskName()
GateID getNextUnboundInputGateID()
null if no such ID existsnull if no such ID existsint getNumberOfOutputGates()
int getNumberOfInputGates()
int getNumberOfOutputChannels()
int getNumberOfInputChannels()
OutputGate createAndRegisterOutputGate()
<T extends IOReadableWritable> InputGate<T> createAndRegisterInputGate()
Set<ChannelID> getOutputChannelIDs()
Set<ChannelID> getInputChannelIDs()
Set<GateID> getOutputGateIDs()
Set<GateID> getInputGateIDs()
Set<ChannelID> getOutputChannelIDsOfGate(GateID gateID)
gateID - the gate IDSet<ChannelID> getInputChannelIDsOfGate(GateID gateID)
gateID - the gate IDAccumulatorProtocol getAccumulatorProtocolProxy()
ClassLoader getUserClassLoader()
BufferProvider getOutputBufferProvider()
RecordWriterMap<String,FutureTask<Path>> getCopyTask()
BroadcastVariableManager getBroadcastVariableManager()
Copyright © 2015 The Apache Software Foundation. All rights reserved.