| Modifier and Type | Field and Description |
|---|---|
static int |
VERSION
The savepoint version.
|
| Constructor and Description |
|---|
SavepointV0(long checkpointId,
Collection<TaskState> taskStates) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes the savepoint.
|
boolean |
equals(Object o) |
long |
getCheckpointId()
Returns the checkpoint ID of the savepoint.
|
Collection<MasterState> |
getMasterStates()
Gets the checkpointed states generated by the master.
|
Collection<TaskState> |
getOldTaskStates() |
Collection<OperatorState> |
getOperatorStates()
Returns the snapshotted operator states.
|
Collection<TaskState> |
getTaskStates()
Returns the snapshotted task states.
|
int |
getVersion() |
int |
hashCode() |
String |
toString() |
public static final int VERSION
public SavepointV0(long checkpointId,
Collection<TaskState> taskStates)
public int getVersion()
getVersion in interface Versionedpublic long getCheckpointId()
SavepointSavepoints use the same mechanisms as regular checkpoints and are
identified by a unique ID. This ID is used to reset the CheckpointIDCounter
when restoring from a savepoint.
getCheckpointId in interface Savepointpublic Collection<TaskState> getTaskStates()
SavepointThese are used to restore the snapshot state.
getTaskStates in interface Savepointpublic Collection<MasterState> getMasterStates()
SavepointgetMasterStates in interface Savepointpublic Collection<OperatorState> getOperatorStates()
SavepointThese are used to restore the snapshot state.
getOperatorStates in interface Savepointpublic void dispose()
throws Exception
Savepointpublic Collection<TaskState> getOldTaskStates()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.