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)
VertexAttemptNumberStoregetAttemptCounts in interface VertexAttemptNumberStorevertexId - vertex for which the attempt numbers should be returnedpublic void setAttemptCount(JobVertexID jobVertexId, int subtaskIndex, int attemptNumber)
MutableVertexAttemptNumberStoresetAttemptCount in interface MutableVertexAttemptNumberStorejobVertexId - vertex the subtask belongs tosubtaskIndex - subtask to set the attempt number forattemptNumber - attempt number to setCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.