public interface Environment
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledgeCheckpoint(long checkpointId)
Confirms that the invokable has successfully completed all steps it needed to
to for the checkpoint with the give checkpoint-ID.
|
void |
acknowledgeCheckpoint(long checkpointId,
StateHandle<?> state)
Confirms that the invokable has successfully completed all steps it needed to
to for the checkpoint with the give checkpoint-ID.
|
InputGate[] |
getAllInputGates() |
ResultPartitionWriter[] |
getAllWriters() |
BroadcastVariableManager |
getBroadcastVariableManager() |
Map<String,Future<org.apache.flink.core.fs.Path>> |
getDistributedCacheEntries() |
ExecutionAttemptID |
getExecutionId()
Gets the ID of the task execution attempt.
|
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. |
org.apache.flink.configuration.Configuration |
getJobConfiguration()
Returns the job-wide configuration object that was attached to the JobGraph.
|
org.apache.flink.api.common.JobID |
getJobID()
Returns the ID of the job that the task belongs to.
|
JobVertexID |
getJobVertexId()
Gets the ID of the JobVertex for which this task executes a parallel subtask.
|
MemoryManager |
getMemoryManager()
Returns the current
MemoryManager. |
int |
getNumberOfSubtasks()
Returns the current number of subtasks the respective task is split into.
|
org.apache.flink.configuration.Configuration |
getTaskConfiguration()
Returns the task-wide configuration object, originally attache to the job vertex.
|
String |
getTaskName()
Returns the name of the task running in this environment.
|
String |
getTaskNameWithSubtasks()
Returns the name of the task running in this environment, appended
with the subtask indicator, such as "MyTask (3/6)", where
3 would be (
getIndexInSubtaskGroup() + 1), and 6 would be
getNumberOfSubtasks(). |
ClassLoader |
getUserClassLoader()
Returns the user code class loader
|
ResultPartitionWriter |
getWriter(int index) |
void |
reportAccumulators(Map<String,org.apache.flink.api.common.accumulators.Accumulator<?,?>> accumulators)
Reports the given set of accumulators to the JobManager.
|
org.apache.flink.api.common.JobID getJobID()
JobVertexID getJobVertexId()
ExecutionAttemptID getExecutionId()
org.apache.flink.configuration.Configuration getTaskConfiguration()
org.apache.flink.configuration.Configuration getJobConfiguration()
int getNumberOfSubtasks()
int getIndexInSubtaskGroup()
getNumberOfSubtasks() - 1.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()
getIndexInSubtaskGroup() + 1), and 6 would be
getNumberOfSubtasks().ClassLoader getUserClassLoader()
Map<String,Future<org.apache.flink.core.fs.Path>> getDistributedCacheEntries()
BroadcastVariableManager getBroadcastVariableManager()
void reportAccumulators(Map<String,org.apache.flink.api.common.accumulators.Accumulator<?,?>> accumulators)
accumulators - The accumulators to report.void acknowledgeCheckpoint(long checkpointId)
checkpointId - The ID of the checkpoint.void acknowledgeCheckpoint(long checkpointId,
StateHandle<?> state)
checkpointId - The ID of the checkpoint.state - A handle to the state to be included in the checkpoint.ResultPartitionWriter getWriter(int index)
ResultPartitionWriter[] getAllWriters()
InputGate getInputGate(int index)
InputGate[] getAllInputGates()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.