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()
AccessExecutionVertex
getTaskNameWithSubtaskIndex
in interface AccessExecutionVertex
public int getParallelSubtaskIndex()
AccessExecutionVertex
getParallelSubtaskIndex
in interface AccessExecutionVertex
public ArchivedExecution getCurrentExecutionAttempt()
AccessExecutionVertex
getCurrentExecutionAttempt
in interface AccessExecutionVertex
public Collection<AccessExecution> getCurrentExecutions()
AccessExecutionVertex
getCurrentExecutions
in interface AccessExecutionVertex
public ExecutionState getExecutionState()
AccessExecutionVertex
ExecutionState
for this execution vertex.getExecutionState
in interface AccessExecutionVertex
public long getStateTimestamp(ExecutionState state)
AccessExecutionVertex
ExecutionState
.getStateTimestamp
in interface AccessExecutionVertex
state
- state for which the timestamp should be returnedpublic Optional<ErrorInfo> getFailureInfo()
AccessExecutionVertex
getFailureInfo
in interface AccessExecutionVertex
Optional
of ErrorInfo
, or an empty
Optional
if no exception was caught.public TaskManagerLocation getCurrentAssignedResourceLocation()
AccessExecutionVertex
TaskManagerLocation
for this execution vertex.getCurrentAssignedResourceLocation
in interface AccessExecutionVertex
public ExecutionHistory getExecutionHistory()
AccessExecutionVertex
getExecutionHistory
in interface AccessExecutionVertex
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.