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()
AccessExecution
ExecutionAttemptID
for this Execution.getAttemptId
in interface AccessExecution
public int getAttemptNumber()
AccessExecution
getAttemptNumber
in interface AccessExecution
public long[] getStateTimestamps()
AccessExecution
ExecutionState
.getStateTimestamps
in interface AccessExecution
public long[] getStateEndTimestamps()
AccessExecution
ExecutionState
.getStateEndTimestamps
in interface AccessExecution
public ExecutionState getState()
AccessExecution
ExecutionState
for this execution.getState
in interface AccessExecution
public TaskManagerLocation getAssignedResourceLocation()
AccessExecution
TaskManagerLocation
for this execution.getAssignedResourceLocation
in interface AccessExecution
public AllocationID getAssignedAllocationID()
public Optional<ErrorInfo> getFailureInfo()
AccessExecution
getFailureInfo
in interface AccessExecution
Optional
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)
AccessExecution
ExecutionState
.getStateTimestamp
in interface AccessExecution
state
- state for which the timestamp should be returnedpublic long getStateEndTimestamp(ExecutionState state)
AccessExecution
ExecutionState
.getStateEndTimestamp
in interface AccessExecution
state
- state for which the timestamp should be returnedpublic StringifiedAccumulatorResult[] getUserAccumulatorsStringified()
AccessExecution
getUserAccumulatorsStringified
in interface AccessExecution
public int getParallelSubtaskIndex()
AccessExecution
getParallelSubtaskIndex
in interface AccessExecution
public IOMetrics getIOMetrics()
getIOMetrics
in interface AccessExecution
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.