public class ArchivedExecution extends Object implements AccessExecution, Serializable
ArchivedExecution is a readonly representation of Execution.| Constructor and Description |
|---|
ArchivedExecution(Execution execution) |
ArchivedExecution(StringifiedAccumulatorResult[] userAccumulators,
IOMetrics ioMetrics,
ExecutionAttemptID attemptId,
ExecutionState state,
ErrorInfo failureCause,
TaskManagerLocation assignedResourceLocation,
AllocationID assignedAllocationID,
long[] stateTimestamps,
long[] stateEndTimestamps) |
| Modifier and Type | Method and Description |
|---|---|
AllocationID |
getAssignedAllocationID() |
TaskManagerLocation |
getAssignedResourceLocation()
Returns the
TaskManagerLocation for this execution. |
ExecutionAttemptID |
getAttemptId()
Returns the
ExecutionAttemptID for this Execution. |
int |
getAttemptNumber()
Returns the attempt number for this execution.
|
Optional<ErrorInfo> |
getFailureInfo()
Returns the exception that caused the job to fail.
|
IOMetrics |
getIOMetrics() |
int |
getParallelSubtaskIndex()
Returns the subtask index of this execution.
|
ExecutionState |
getState()
Returns the current
ExecutionState for this execution. |
long |
getStateEndTimestamp(ExecutionState state)
Returns the end timestamp for the given
ExecutionState. |
long[] |
getStateEndTimestamps()
Returns the end timestamps for every
ExecutionState. |
long |
getStateTimestamp(ExecutionState state)
Returns the timestamp for the given
ExecutionState. |
long[] |
getStateTimestamps()
Returns the timestamps for every
ExecutionState. |
StringifiedAccumulatorResult[] |
getUserAccumulatorsStringified()
Returns the user-defined accumulators as strings.
|
public ArchivedExecution(Execution execution)
public ArchivedExecution(StringifiedAccumulatorResult[] userAccumulators, IOMetrics ioMetrics, ExecutionAttemptID attemptId, ExecutionState state, @Nullable ErrorInfo failureCause, TaskManagerLocation assignedResourceLocation, AllocationID assignedAllocationID, long[] stateTimestamps, long[] stateEndTimestamps)
public ExecutionAttemptID getAttemptId()
AccessExecutionExecutionAttemptID for this Execution.getAttemptId in interface AccessExecutionpublic int getAttemptNumber()
AccessExecutiongetAttemptNumber in interface AccessExecutionpublic long[] getStateTimestamps()
AccessExecutionExecutionState.getStateTimestamps in interface AccessExecutionpublic long[] getStateEndTimestamps()
AccessExecutionExecutionState.getStateEndTimestamps in interface AccessExecutionpublic ExecutionState getState()
AccessExecutionExecutionState for this execution.getState in interface AccessExecutionpublic TaskManagerLocation getAssignedResourceLocation()
AccessExecutionTaskManagerLocation for this execution.getAssignedResourceLocation in interface AccessExecutionpublic AllocationID getAssignedAllocationID()
public Optional<ErrorInfo> getFailureInfo()
AccessExecutiongetFailureInfo in interface AccessExecutionOptional of ErrorInfo containing the Throwable and the
time it was registered if an error occurred. If no error occurred an empty Optional will be returned.public long getStateTimestamp(ExecutionState state)
AccessExecutionExecutionState.getStateTimestamp in interface AccessExecutionstate - state for which the timestamp should be returnedpublic long getStateEndTimestamp(ExecutionState state)
AccessExecutionExecutionState.getStateEndTimestamp in interface AccessExecutionstate - state for which the timestamp should be returnedpublic StringifiedAccumulatorResult[] getUserAccumulatorsStringified()
AccessExecutiongetUserAccumulatorsStringified in interface AccessExecutionpublic int getParallelSubtaskIndex()
AccessExecutiongetParallelSubtaskIndex in interface AccessExecutionpublic IOMetrics getIOMetrics()
getIOMetrics in interface AccessExecutionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.