public class ArchivedExecution extends Object implements AccessExecution, Serializable
ArchivedExecution is a readonly representation of Execution.| 构造器和说明 |
|---|
ArchivedExecution(Execution execution) |
ArchivedExecution(StringifiedAccumulatorResult[] userAccumulators,
IOMetrics ioMetrics,
ExecutionAttemptID attemptId,
int attemptNumber,
ExecutionState state,
ErrorInfo failureCause,
TaskManagerLocation assignedResourceLocation,
AllocationID assignedAllocationID,
int parallelSubtaskIndex,
long[] stateTimestamps) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
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, int attemptNumber, ExecutionState state, @Nullable ErrorInfo failureCause, TaskManagerLocation assignedResourceLocation, AllocationID assignedAllocationID, int parallelSubtaskIndex, long[] stateTimestamps)
public ExecutionAttemptID getAttemptId()
AccessExecutionExecutionAttemptID for this Execution.getAttemptId 在接口中 AccessExecutionpublic int getAttemptNumber()
AccessExecutiongetAttemptNumber 在接口中 AccessExecutionpublic long[] getStateTimestamps()
AccessExecutionExecutionState.getStateTimestamps 在接口中 AccessExecutionpublic ExecutionState getState()
AccessExecutionExecutionState for this execution.getState 在接口中 AccessExecutionpublic TaskManagerLocation getAssignedResourceLocation()
AccessExecutionTaskManagerLocation for this execution.getAssignedResourceLocation 在接口中 AccessExecutionpublic AllocationID getAssignedAllocationID()
public Optional<ErrorInfo> getFailureInfo()
AccessExecutiongetFailureInfo 在接口中 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 在接口中 AccessExecutionstate - state for which the timestamp should be returnedpublic StringifiedAccumulatorResult[] getUserAccumulatorsStringified()
AccessExecutiongetUserAccumulatorsStringified 在接口中 AccessExecutionpublic int getParallelSubtaskIndex()
AccessExecutiongetParallelSubtaskIndex 在接口中 AccessExecutionpublic IOMetrics getIOMetrics()
getIOMetrics 在接口中 AccessExecutionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.