Class DefaultSubtaskAttemptNumberStore
- java.lang.Object
-
- org.apache.flink.runtime.executiongraph.DefaultSubtaskAttemptNumberStore
-
- All Implemented Interfaces:
SubtaskAttemptNumberStore
public class DefaultSubtaskAttemptNumberStore extends Object implements SubtaskAttemptNumberStore
Simple container for subtask attempt counts backed by a list.
-
-
Constructor Summary
Constructors Constructor Description DefaultSubtaskAttemptNumberStore(List<Integer> attemptCounts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAttemptCount(int subtaskIndex)
Returns the attempt number for the given subtask.
-
-
-
Method Detail
-
getAttemptCount
public int getAttemptCount(int subtaskIndex)
Description copied from interface:SubtaskAttemptNumberStore
Returns the attempt number for the given subtask.- Specified by:
getAttemptCount
in interfaceSubtaskAttemptNumberStore
- Parameters:
subtaskIndex
- subtask to return the attempt number for- Returns:
- attempt number for the given subtask
-
-