Class ArchivedExecutionVertex
- java.lang.Object
-
- org.apache.flink.runtime.executiongraph.ArchivedExecutionVertex
-
- All Implemented Interfaces:
Serializable,AccessExecutionVertex
public class ArchivedExecutionVertex extends Object implements AccessExecutionVertex, Serializable
ArchivedExecutionVertexis a readonly representation ofExecutionVertex.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArchivedExecutionVertex(int subTaskIndex, String taskNameWithSubtask, ArchivedExecution currentExecution, ExecutionHistory executionHistory)ArchivedExecutionVertex(ExecutionVertex vertex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskManagerLocationgetCurrentAssignedResourceLocation()Returns theTaskManagerLocationfor this execution vertex.ArchivedExecutiongetCurrentExecutionAttempt()Returns the current execution for this execution vertex.Collection<AccessExecution>getCurrentExecutions()Returns the current executions for this execution vertex.ExecutionHistorygetExecutionHistory()Returns the execution history.ExecutionStategetExecutionState()Returns the currentExecutionStatefor this execution vertex.Optional<ErrorInfo>getFailureInfo()Returns the exception that caused the job to fail.intgetParallelSubtaskIndex()Returns the subtask index of this execution vertex.longgetStateTimestamp(ExecutionState state)Returns the timestamp for the givenExecutionState.StringgetTaskNameWithSubtaskIndex()Returns the name of this execution vertex in the format "myTask (2/7)".
-
-
-
Constructor Detail
-
ArchivedExecutionVertex
public ArchivedExecutionVertex(ExecutionVertex vertex)
-
ArchivedExecutionVertex
@VisibleForTesting public ArchivedExecutionVertex(int subTaskIndex, String taskNameWithSubtask, ArchivedExecution currentExecution, ExecutionHistory executionHistory)
-
-
Method Detail
-
getTaskNameWithSubtaskIndex
public String 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
public ArchivedExecution getCurrentExecutionAttempt()
Description copied from interface:AccessExecutionVertexReturns the current execution for this execution vertex.- Specified by:
getCurrentExecutionAttemptin interfaceAccessExecutionVertex- Returns:
- current execution
-
getCurrentExecutions
public Collection<AccessExecution> 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
public ExecutionState getExecutionState()
Description copied from interface:AccessExecutionVertexReturns the currentExecutionStatefor this execution vertex.- Specified by:
getExecutionStatein interfaceAccessExecutionVertex- Returns:
- execution state for this execution vertex
-
getStateTimestamp
public long getStateTimestamp(ExecutionState state)
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
public Optional<ErrorInfo> 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
public TaskManagerLocation getCurrentAssignedResourceLocation()
Description copied from interface:AccessExecutionVertexReturns theTaskManagerLocationfor this execution vertex.- Specified by:
getCurrentAssignedResourceLocationin interfaceAccessExecutionVertex- Returns:
- taskmanager location for this execution vertex.
-
getExecutionHistory
public ExecutionHistory getExecutionHistory()
Description copied from interface:AccessExecutionVertexReturns the execution history.- Specified by:
getExecutionHistoryin interfaceAccessExecutionVertex- Returns:
- the execution history
-
-