Interface AccessExecutionVertex
- All Known Implementing Classes:
ArchivedExecutionVertex,ExecutionVertex,SpeculativeExecutionVertex
public interface AccessExecutionVertex
Common interface for the runtime
ExecutionVertex and ArchivedExecutionVertex.-
Method Summary
Modifier and TypeMethodDescriptionReturns theTaskManagerLocationfor this execution vertex.Returns the current execution for this execution vertex.<T extends AccessExecution>
Collection<T>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)".
-
Method Details
-
getTaskNameWithSubtaskIndex
String getTaskNameWithSubtaskIndex()Returns the name of this execution vertex in the format "myTask (2/7)".- Returns:
- name of this execution vertex
-
getParallelSubtaskIndex
int getParallelSubtaskIndex()Returns the subtask index of this execution vertex.- Returns:
- subtask index of this execution vertex.
-
getCurrentExecutionAttempt
AccessExecution getCurrentExecutionAttempt()Returns the current execution for this execution vertex.- Returns:
- current execution
-
getCurrentExecutions
Returns the current executions for this execution vertex. The returned collection must contain the current execution attempt.- Returns:
- current executions
-
getExecutionState
ExecutionState getExecutionState()Returns the currentExecutionStatefor this execution vertex.- Returns:
- execution state for this execution vertex
-
getStateTimestamp
Returns the timestamp for the givenExecutionState.- Parameters:
state- state for which the timestamp should be returned- Returns:
- timestamp for the given state
-
getFailureInfo
Returns the exception that caused the job to fail. This is the first root exception that was not recoverable and triggered job failure. -
getCurrentAssignedResourceLocation
TaskManagerLocation getCurrentAssignedResourceLocation()Returns theTaskManagerLocationfor this execution vertex.- Returns:
- taskmanager location for this execution vertex.
-
getExecutionHistory
ExecutionHistory getExecutionHistory()Returns the execution history.- Returns:
- the execution history
-