Interface AccessExecutionVertex
-
- All Known Implementing Classes:
ArchivedExecutionVertex
,ExecutionVertex
,SpeculativeExecutionVertex
public interface AccessExecutionVertex
Common interface for the runtimeExecutionVertex
andArchivedExecutionVertex
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskManagerLocation
getCurrentAssignedResourceLocation()
Returns theTaskManagerLocation
for this execution vertex.AccessExecution
getCurrentExecutionAttempt()
Returns the current execution for this execution vertex.<T extends AccessExecution>
Collection<T>getCurrentExecutions()
Returns the current executions for this execution vertex.ExecutionHistory
getExecutionHistory()
Returns the execution history.ExecutionState
getExecutionState()
Returns the currentExecutionState
for this execution vertex.Optional<ErrorInfo>
getFailureInfo()
Returns the exception that caused the job to fail.int
getParallelSubtaskIndex()
Returns the subtask index of this execution vertex.long
getStateTimestamp(ExecutionState state)
Returns the timestamp for the givenExecutionState
.String
getTaskNameWithSubtaskIndex()
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 currentExecutionState
for 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 theTaskManagerLocation
for this execution vertex.- Returns:
- taskmanager location for this execution vertex.
-
getExecutionHistory
ExecutionHistory getExecutionHistory()
Returns the execution history.- Returns:
- the execution history
-
-