Class ArchivedExecutionVertex
java.lang.Object
org.apache.flink.runtime.executiongraph.ArchivedExecutionVertex
- All Implemented Interfaces:
Serializable,AccessExecutionVertex
ArchivedExecutionVertex is a readonly representation of ExecutionVertex.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionArchivedExecutionVertex(int subTaskIndex, String taskNameWithSubtask, ArchivedExecution currentExecution, ExecutionHistory executionHistory) -
Method Summary
Modifier and TypeMethodDescriptionReturns theTaskManagerLocationfor this execution vertex.Returns the current execution for this execution vertex.Returns the current executions for this execution vertex.Returns the execution history.Returns the currentExecutionStatefor this execution vertex.Returns the exception that caused the job to fail.intReturns the subtask index of this execution vertex.longgetStateTimestamp(ExecutionState state) Returns the timestamp for the givenExecutionState.Returns the name of this execution vertex in the format "myTask (2/7)".
-
Constructor Details
-
ArchivedExecutionVertex
-
ArchivedExecutionVertex
@VisibleForTesting public ArchivedExecutionVertex(int subTaskIndex, String taskNameWithSubtask, ArchivedExecution currentExecution, ExecutionHistory executionHistory)
-
-
Method Details
-
getTaskNameWithSubtaskIndex
Description copied from interface:AccessExecutionVertexReturns the name of this execution vertex in the format "myTask (2/7)".- Specified by:
getTaskNameWithSubtaskIndexin interfaceAccessExecutionVertex- Returns:
- name of this execution vertex
-
getParallelSubtaskIndex
public int getParallelSubtaskIndex()Description copied from interface:AccessExecutionVertexReturns the subtask index of this execution vertex.- Specified by:
getParallelSubtaskIndexin interfaceAccessExecutionVertex- Returns:
- subtask index of this execution vertex.
-
getCurrentExecutionAttempt
Description copied from interface:AccessExecutionVertexReturns the current execution for this execution vertex.- Specified by:
getCurrentExecutionAttemptin interfaceAccessExecutionVertex- Returns:
- current execution
-
getCurrentExecutions
Description copied from interface:AccessExecutionVertexReturns the current executions for this execution vertex. The returned collection must contain the current execution attempt.- Specified by:
getCurrentExecutionsin interfaceAccessExecutionVertex- Returns:
- current executions
-
getExecutionState
Description copied from interface:AccessExecutionVertexReturns the currentExecutionStatefor this execution vertex.- Specified by:
getExecutionStatein interfaceAccessExecutionVertex- Returns:
- execution state for this execution vertex
-
getStateTimestamp
Description copied from interface:AccessExecutionVertexReturns the timestamp for the givenExecutionState.- Specified by:
getStateTimestampin interfaceAccessExecutionVertex- Parameters:
state- state for which the timestamp should be returned- Returns:
- timestamp for the given state
-
getFailureInfo
Description copied from interface:AccessExecutionVertexReturns the exception that caused the job to fail. This is the first root exception that was not recoverable and triggered job failure.- Specified by:
getFailureInfoin interfaceAccessExecutionVertex- Returns:
- failure exception wrapped in an
OptionalofErrorInfo, or an emptyOptionalif no exception was caught.
-
getCurrentAssignedResourceLocation
Description copied from interface:AccessExecutionVertexReturns theTaskManagerLocationfor this execution vertex.- Specified by:
getCurrentAssignedResourceLocationin interfaceAccessExecutionVertex- Returns:
- taskmanager location for this execution vertex.
-
getExecutionHistory
Description copied from interface:AccessExecutionVertexReturns the execution history.- Specified by:
getExecutionHistoryin interfaceAccessExecutionVertex- Returns:
- the execution history
-