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,
EvictingBoundedList<ArchivedExecution> priorExecutions) |
| 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.
|
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.
|
ArchivedExecution |
getPriorExecutionAttempt(int attemptNumber)
Returns the execution for the given attempt number.
|
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)
public ArchivedExecutionVertex(int subTaskIndex,
String taskNameWithSubtask,
ArchivedExecution currentExecution,
EvictingBoundedList<ArchivedExecution> priorExecutions)
public String getTaskNameWithSubtaskIndex()
AccessExecutionVertexgetTaskNameWithSubtaskIndex in interface AccessExecutionVertexpublic int getParallelSubtaskIndex()
AccessExecutionVertexgetParallelSubtaskIndex in interface AccessExecutionVertexpublic ArchivedExecution getCurrentExecutionAttempt()
AccessExecutionVertexgetCurrentExecutionAttempt 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 AccessExecutionVertex@Nullable public ArchivedExecution getPriorExecutionAttempt(int attemptNumber)
AccessExecutionVertexgetPriorExecutionAttempt in interface AccessExecutionVertexattemptNumber - attempt number of execution to be returnedCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.