public class ArchivedExecutionVertex extends Object implements AccessExecutionVertex, Serializable
ArchivedExecutionVertex is a readonly representation of ExecutionVertex.| Constructor and Description |
|---|
ArchivedExecutionVertex(ExecutionVertex vertex) |
ArchivedExecutionVertex(int subTaskIndex,
String taskNameWithSubtask,
ArchivedExecution currentExecution,
ExecutionHistory executionHistory) |
| Modifier and Type | Method and Description |
|---|---|
TaskManagerLocation |
getCurrentAssignedResourceLocation()
Returns the
TaskManagerLocation for this execution vertex. |
ArchivedExecution |
getCurrentExecutionAttempt()
Returns the current execution for this execution vertex.
|
Collection<AccessExecution> |
getCurrentExecutions()
Returns the current executions for this execution vertex.
|
ExecutionHistory |
getExecutionHistory()
Returns the execution history.
|
ExecutionState |
getExecutionState()
Returns the current
ExecutionState 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 given
ExecutionState. |
String |
getTaskNameWithSubtaskIndex()
Returns the name of this execution vertex in the format "myTask (2/7)".
|
public ArchivedExecutionVertex(ExecutionVertex vertex)
@VisibleForTesting
public ArchivedExecutionVertex(int subTaskIndex,
String taskNameWithSubtask,
ArchivedExecution currentExecution,
ExecutionHistory executionHistory)
public String getTaskNameWithSubtaskIndex()
AccessExecutionVertexgetTaskNameWithSubtaskIndex in interface AccessExecutionVertexpublic int getParallelSubtaskIndex()
AccessExecutionVertexgetParallelSubtaskIndex in interface AccessExecutionVertexpublic ArchivedExecution getCurrentExecutionAttempt()
AccessExecutionVertexgetCurrentExecutionAttempt in interface AccessExecutionVertexpublic Collection<AccessExecution> getCurrentExecutions()
AccessExecutionVertexgetCurrentExecutions in interface AccessExecutionVertexpublic ExecutionState getExecutionState()
AccessExecutionVertexExecutionState for this execution vertex.getExecutionState in interface AccessExecutionVertexpublic long getStateTimestamp(ExecutionState state)
AccessExecutionVertexExecutionState.getStateTimestamp in interface AccessExecutionVertexstate - state for which the timestamp should be returnedpublic Optional<ErrorInfo> getFailureInfo()
AccessExecutionVertexgetFailureInfo in interface AccessExecutionVertexOptional of ErrorInfo, or an empty
Optional if no exception was caught.public TaskManagerLocation getCurrentAssignedResourceLocation()
AccessExecutionVertexTaskManagerLocation for this execution vertex.getCurrentAssignedResourceLocation in interface AccessExecutionVertexpublic ExecutionHistory getExecutionHistory()
AccessExecutionVertexgetExecutionHistory in interface AccessExecutionVertexCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.