Interface AccessExecution
- All Known Implementing Classes:
ArchivedExecution,Execution
public interface AccessExecution
Common interface for the runtime
Execution and ArchivedExecution.-
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.
-
Method Details
-
getAttemptId
ExecutionAttemptID getAttemptId()Returns theExecutionAttemptIDfor this Execution.- Returns:
- ExecutionAttemptID for this execution
-
getAttemptNumber
int getAttemptNumber()Returns the attempt number for this execution.- Returns:
- attempt number for this execution.
-
getStateTimestamps
long[] getStateTimestamps()Returns the timestamps for everyExecutionState.- Returns:
- timestamps for each state
-
getStateEndTimestamps
long[] getStateEndTimestamps()Returns the end timestamps for everyExecutionState.- Returns:
- timestamps for each state
-
getState
ExecutionState getState()Returns the currentExecutionStatefor this execution.- Returns:
- execution state for this execution
-
getAssignedResourceLocation
TaskManagerLocation getAssignedResourceLocation()Returns theTaskManagerLocationfor this execution.- Returns:
- taskmanager location for this execution.
-
getFailureInfo
Returns the exception that caused the job to fail. This is the first root exception that was not recoverable and triggered job failure.- Returns:
- an
OptionalofErrorInfocontaining theThrowableand the time it was registered if an error occurred. If no error occurred an emptyOptionalwill be returned.
-
getStateTimestamp
Returns the timestamp for the givenExecutionState.- Parameters:
state- state for which the timestamp should be returned- Returns:
- timestamp for the given state
-
getStateEndTimestamp
Returns the end timestamp for the givenExecutionState.- Parameters:
state- state for which the timestamp should be returned- Returns:
- timestamp for the given state
-
getUserAccumulatorsStringified
StringifiedAccumulatorResult[] getUserAccumulatorsStringified()Returns the user-defined accumulators as strings.- Returns:
- user-defined accumulators as strings.
-
getParallelSubtaskIndex
int getParallelSubtaskIndex()Returns the subtask index of this execution.- Returns:
- subtask index of this execution.
-
getIOMetrics
IOMetrics getIOMetrics()
-