public class DefaultVertexAttemptNumberStore extends Object implements MutableVertexAttemptNumberStore
Constructor and Description |
---|
DefaultVertexAttemptNumberStore() |
Modifier and Type | Method and 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.
|
public SubtaskAttemptNumberStore getAttemptCounts(JobVertexID vertexId)
VertexAttemptNumberStore
getAttemptCounts
in interface VertexAttemptNumberStore
vertexId
- vertex for which the attempt numbers should be returnedpublic void setAttemptCount(JobVertexID jobVertexId, int subtaskIndex, int attemptNumber)
MutableVertexAttemptNumberStore
setAttemptCount
in interface MutableVertexAttemptNumberStore
jobVertexId
- vertex the subtask belongs tosubtaskIndex
- subtask to set the attempt number forattemptNumber
- attempt number to setCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.