| Modifier and Type | Field and Description |
|---|---|
static int |
VERSION
The savepoint version.
|
| Constructor and Description |
|---|
SavepointV1(long checkpointId,
Collection<TaskState> taskStates) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
long |
getCheckpointId()
Returns the checkpoint ID of the savepoint.
|
Collection<MasterState> |
getMasterStates()
Gets the checkpointed states generated by the master.
|
Collection<OperatorState> |
getOperatorStates()
Returns the snapshotted operator states.
|
Collection<TaskState> |
getTaskStates()
Returns the snapshotted task states.
|
int |
getVersion() |
String |
toString() |
public static final int VERSION
public SavepointV1(long checkpointId,
Collection<TaskState> taskStates)
public int getVersion()
getVersion in interface org.apache.flink.core.io.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
dispose in interface org.apache.flink.util.DisposableExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.