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 SubtaskAttemptNumberStoregetAttemptCounts(JobVertexID vertexId)Returns the attempt numbers for the given vertex.voidsetAttemptCount(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:VertexAttemptNumberStoreReturns the attempt numbers for the given vertex.- Specified by:
getAttemptCountsin 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:MutableVertexAttemptNumberStoreSets the attempt count for the given subtask of the given vertex.- Specified by:
setAttemptCountin interfaceMutableVertexAttemptNumberStore- Parameters:
jobVertexId- vertex the subtask belongs tosubtaskIndex- subtask to set the attempt number forattemptNumber- attempt number to set
-
-