Interface AccessExecutionVertex
-
- All Known Implementing Classes:
ArchivedExecutionVertex,ExecutionVertex,SpeculativeExecutionVertex
public interface AccessExecutionVertexCommon interface for the runtimeExecutionVertexandArchivedExecutionVertex.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskManagerLocationgetCurrentAssignedResourceLocation()Returns theTaskManagerLocationfor this execution vertex.AccessExecutiongetCurrentExecutionAttempt()Returns the current execution for this execution vertex.<T extends AccessExecution>
Collection<T>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)".
-
-
-
Method Detail
-
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
<T extends AccessExecution> Collection<T> 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
long getStateTimestamp(ExecutionState state)
Returns the timestamp for the givenExecutionState.- Parameters:
state- state for which the timestamp should be returned- Returns:
- timestamp for the given state
-
getFailureInfo
Optional<ErrorInfo> 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
-
-