Class ArchivedExecution
- java.lang.Object
-
- org.apache.flink.runtime.executiongraph.ArchivedExecution
-
- All Implemented Interfaces:
Serializable
,AccessExecution
public class ArchivedExecution extends Object implements AccessExecution, Serializable
ArchivedExecution
is a readonly representation ofExecution
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArchivedExecution(StringifiedAccumulatorResult[] userAccumulators, IOMetrics ioMetrics, ExecutionAttemptID attemptId, ExecutionState state, ErrorInfo failureCause, TaskManagerLocation assignedResourceLocation, AllocationID assignedAllocationID, long[] stateTimestamps, long[] stateEndTimestamps)
ArchivedExecution(Execution execution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationID
getAssignedAllocationID()
TaskManagerLocation
getAssignedResourceLocation()
Returns theTaskManagerLocation
for this execution.ExecutionAttemptID
getAttemptId()
Returns theExecutionAttemptID
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 currentExecutionState
for this execution.long
getStateEndTimestamp(ExecutionState state)
Returns the end timestamp for the givenExecutionState
.long[]
getStateEndTimestamps()
Returns the end timestamps for everyExecutionState
.long
getStateTimestamp(ExecutionState state)
Returns the timestamp for the givenExecutionState
.long[]
getStateTimestamps()
Returns the timestamps for everyExecutionState
.StringifiedAccumulatorResult[]
getUserAccumulatorsStringified()
Returns the user-defined accumulators as strings.
-
-
-
Constructor Detail
-
ArchivedExecution
public ArchivedExecution(Execution execution)
-
ArchivedExecution
public ArchivedExecution(StringifiedAccumulatorResult[] userAccumulators, IOMetrics ioMetrics, ExecutionAttemptID attemptId, ExecutionState state, @Nullable ErrorInfo failureCause, TaskManagerLocation assignedResourceLocation, AllocationID assignedAllocationID, long[] stateTimestamps, long[] stateEndTimestamps)
-
-
Method Detail
-
getAttemptId
public ExecutionAttemptID getAttemptId()
Description copied from interface:AccessExecution
Returns theExecutionAttemptID
for this Execution.- Specified by:
getAttemptId
in interfaceAccessExecution
- Returns:
- ExecutionAttemptID for this execution
-
getAttemptNumber
public int getAttemptNumber()
Description copied from interface:AccessExecution
Returns the attempt number for this execution.- Specified by:
getAttemptNumber
in interfaceAccessExecution
- Returns:
- attempt number for this execution.
-
getStateTimestamps
public long[] getStateTimestamps()
Description copied from interface:AccessExecution
Returns the timestamps for everyExecutionState
.- Specified by:
getStateTimestamps
in interfaceAccessExecution
- Returns:
- timestamps for each state
-
getStateEndTimestamps
public long[] getStateEndTimestamps()
Description copied from interface:AccessExecution
Returns the end timestamps for everyExecutionState
.- Specified by:
getStateEndTimestamps
in interfaceAccessExecution
- Returns:
- timestamps for each state
-
getState
public ExecutionState getState()
Description copied from interface:AccessExecution
Returns the currentExecutionState
for this execution.- Specified by:
getState
in interfaceAccessExecution
- Returns:
- execution state for this execution
-
getAssignedResourceLocation
public TaskManagerLocation getAssignedResourceLocation()
Description copied from interface:AccessExecution
Returns theTaskManagerLocation
for this execution.- Specified by:
getAssignedResourceLocation
in interfaceAccessExecution
- Returns:
- taskmanager location for this execution.
-
getAssignedAllocationID
public AllocationID getAssignedAllocationID()
-
getFailureInfo
public Optional<ErrorInfo> getFailureInfo()
Description copied from interface:AccessExecution
Returns the exception that caused the job to fail. This is the first root exception that was not recoverable and triggered job failure.- Specified by:
getFailureInfo
in interfaceAccessExecution
- Returns:
- an
Optional
ofErrorInfo
containing theThrowable
and the time it was registered if an error occurred. If no error occurred an emptyOptional
will be returned.
-
getStateTimestamp
public long getStateTimestamp(ExecutionState state)
Description copied from interface:AccessExecution
Returns the timestamp for the givenExecutionState
.- Specified by:
getStateTimestamp
in interfaceAccessExecution
- Parameters:
state
- state for which the timestamp should be returned- Returns:
- timestamp for the given state
-
getStateEndTimestamp
public long getStateEndTimestamp(ExecutionState state)
Description copied from interface:AccessExecution
Returns the end timestamp for the givenExecutionState
.- Specified by:
getStateEndTimestamp
in interfaceAccessExecution
- Parameters:
state
- state for which the timestamp should be returned- Returns:
- timestamp for the given state
-
getUserAccumulatorsStringified
public StringifiedAccumulatorResult[] getUserAccumulatorsStringified()
Description copied from interface:AccessExecution
Returns the user-defined accumulators as strings.- Specified by:
getUserAccumulatorsStringified
in interfaceAccessExecution
- Returns:
- user-defined accumulators as strings.
-
getParallelSubtaskIndex
public int getParallelSubtaskIndex()
Description copied from interface:AccessExecution
Returns the subtask index of this execution.- Specified by:
getParallelSubtaskIndex
in interfaceAccessExecution
- Returns:
- subtask index of this execution.
-
getIOMetrics
public IOMetrics getIOMetrics()
- Specified by:
getIOMetrics
in interfaceAccessExecution
-
-