Class DefaultVertexAttemptNumberStore
- java.lang.Object
-
- org.apache.flink.runtime.executiongraph.DefaultVertexAttemptNumberStore
-
- All Implemented Interfaces:
MutableVertexAttemptNumberStore
,VertexAttemptNumberStore
public class DefaultVertexAttemptNumberStore extends Object implements MutableVertexAttemptNumberStore
Maintains the attempt number per subtask.
-
-
Constructor Summary
Constructors Constructor Description DefaultVertexAttemptNumberStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubtaskAttemptNumberStore
getAttemptCounts(JobVertexID vertexId)
Returns the attempt numbers for the given vertex.void
setAttemptCount(JobVertexID jobVertexId, int subtaskIndex, int attemptNumber)
Sets the attempt count for the given subtask of the given vertex.
-
-
-
Method Detail
-
getAttemptCounts
public SubtaskAttemptNumberStore getAttemptCounts(JobVertexID vertexId)
Description copied from interface:VertexAttemptNumberStore
Returns the attempt numbers for the given vertex.- Specified by:
getAttemptCounts
in interfaceVertexAttemptNumberStore
- Parameters:
vertexId
- vertex for which the attempt numbers should be returned- Returns:
- attempt numbers for the given vertex
-
setAttemptCount
public void setAttemptCount(JobVertexID jobVertexId, int subtaskIndex, int attemptNumber)
Description copied from interface:MutableVertexAttemptNumberStore
Sets the attempt count for the given subtask of the given vertex.- Specified by:
setAttemptCount
in interfaceMutableVertexAttemptNumberStore
- Parameters:
jobVertexId
- vertex the subtask belongs tosubtaskIndex
- subtask to set the attempt number forattemptNumber
- attempt number to set
-
-