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 -
Method Summary
Modifier and TypeMethodDescriptiongetAttemptCounts(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.
-
Constructor Details
-
DefaultVertexAttemptNumberStore
public DefaultVertexAttemptNumberStore()
-
-
Method Details
-
getAttemptCounts
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
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
-