Class ArchivedExecution
java.lang.Object
org.apache.flink.runtime.executiongraph.ArchivedExecution
- All Implemented Interfaces:
Serializable,AccessExecution
ArchivedExecution is a readonly representation of Execution.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionArchivedExecution(StringifiedAccumulatorResult[] userAccumulators, IOMetrics ioMetrics, ExecutionAttemptID attemptId, ExecutionState state, ErrorInfo failureCause, TaskManagerLocation assignedResourceLocation, AllocationID assignedAllocationID, long[] stateTimestamps, long[] stateEndTimestamps) ArchivedExecution(Execution execution) -
Method Summary
Modifier and TypeMethodDescriptionReturns theTaskManagerLocationfor this execution.Returns theExecutionAttemptIDfor this Execution.intReturns the attempt number for this execution.Returns the exception that caused the job to fail.intReturns the subtask index of this execution.getState()Returns the currentExecutionStatefor this execution.longReturns the end timestamp for the givenExecutionState.long[]Returns the end timestamps for everyExecutionState.longgetStateTimestamp(ExecutionState state) Returns the timestamp for the givenExecutionState.long[]Returns the timestamps for everyExecutionState.Returns the user-defined accumulators as strings.
-
Constructor Details
-
ArchivedExecution
-
ArchivedExecution
public ArchivedExecution(StringifiedAccumulatorResult[] userAccumulators, IOMetrics ioMetrics, ExecutionAttemptID attemptId, ExecutionState state, @Nullable ErrorInfo failureCause, TaskManagerLocation assignedResourceLocation, AllocationID assignedAllocationID, long[] stateTimestamps, long[] stateEndTimestamps)
-
-
Method Details
-
getAttemptId
Description copied from interface:AccessExecutionReturns theExecutionAttemptIDfor this Execution.- Specified by:
getAttemptIdin interfaceAccessExecution- Returns:
- ExecutionAttemptID for this execution
-
getAttemptNumber
public int getAttemptNumber()Description copied from interface:AccessExecutionReturns the attempt number for this execution.- Specified by:
getAttemptNumberin interfaceAccessExecution- Returns:
- attempt number for this execution.
-
getStateTimestamps
public long[] getStateTimestamps()Description copied from interface:AccessExecutionReturns the timestamps for everyExecutionState.- Specified by:
getStateTimestampsin interfaceAccessExecution- Returns:
- timestamps for each state
-
getStateEndTimestamps
public long[] getStateEndTimestamps()Description copied from interface:AccessExecutionReturns the end timestamps for everyExecutionState.- Specified by:
getStateEndTimestampsin interfaceAccessExecution- Returns:
- timestamps for each state
-
getState
Description copied from interface:AccessExecutionReturns the currentExecutionStatefor this execution.- Specified by:
getStatein interfaceAccessExecution- Returns:
- execution state for this execution
-
getAssignedResourceLocation
Description copied from interface:AccessExecutionReturns theTaskManagerLocationfor this execution.- Specified by:
getAssignedResourceLocationin interfaceAccessExecution- Returns:
- taskmanager location for this execution.
-
getAssignedAllocationID
-
getFailureInfo
Description copied from interface:AccessExecutionReturns the exception that caused the job to fail. This is the first root exception that was not recoverable and triggered job failure.- Specified by:
getFailureInfoin interfaceAccessExecution- Returns:
- an
OptionalofErrorInfocontaining theThrowableand the time it was registered if an error occurred. If no error occurred an emptyOptionalwill be returned.
-
getStateTimestamp
Description copied from interface:AccessExecutionReturns the timestamp for the givenExecutionState.- Specified by:
getStateTimestampin interfaceAccessExecution- Parameters:
state- state for which the timestamp should be returned- Returns:
- timestamp for the given state
-
getStateEndTimestamp
Description copied from interface:AccessExecutionReturns the end timestamp for the givenExecutionState.- Specified by:
getStateEndTimestampin interfaceAccessExecution- Parameters:
state- state for which the timestamp should be returned- Returns:
- timestamp for the given state
-
getUserAccumulatorsStringified
Description copied from interface:AccessExecutionReturns the user-defined accumulators as strings.- Specified by:
getUserAccumulatorsStringifiedin interfaceAccessExecution- Returns:
- user-defined accumulators as strings.
-
getParallelSubtaskIndex
public int getParallelSubtaskIndex()Description copied from interface:AccessExecutionReturns the subtask index of this execution.- Specified by:
getParallelSubtaskIndexin interfaceAccessExecution- Returns:
- subtask index of this execution.
-
getIOMetrics
- Specified by:
getIOMetricsin interfaceAccessExecution
-