Interface AccessExecution
-
- All Known Implementing Classes:
ArchivedExecution,Execution
public interface AccessExecutionCommon interface for the runtimeExecutionandArchivedExecution.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskManagerLocationgetAssignedResourceLocation()Returns theTaskManagerLocationfor this execution.ExecutionAttemptIDgetAttemptId()Returns theExecutionAttemptIDfor this Execution.intgetAttemptNumber()Returns the attempt number for this execution.Optional<ErrorInfo>getFailureInfo()Returns the exception that caused the job to fail.IOMetricsgetIOMetrics()intgetParallelSubtaskIndex()Returns the subtask index of this execution.ExecutionStategetState()Returns the currentExecutionStatefor this execution.longgetStateEndTimestamp(ExecutionState state)Returns the end timestamp for the givenExecutionState.long[]getStateEndTimestamps()Returns the end timestamps for everyExecutionState.longgetStateTimestamp(ExecutionState state)Returns the timestamp for the givenExecutionState.long[]getStateTimestamps()Returns the timestamps for everyExecutionState.StringifiedAccumulatorResult[]getUserAccumulatorsStringified()Returns the user-defined accumulators as strings.
-
-
-
Method Detail
-
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
Optional<ErrorInfo> 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
long getStateTimestamp(ExecutionState state)
Returns the timestamp for the givenExecutionState.- Parameters:
state- state for which the timestamp should be returned- Returns:
- timestamp for the given state
-
getStateEndTimestamp
long getStateEndTimestamp(ExecutionState state)
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()
-
-