public interface Savepoint extends Disposable, Versioned
In order to allow changes to the savepoint format between Flink versions, we allow different savepoint implementations (see subclasses of this interface).
Savepoints are serialized via a SavepointSerializer
.
Modifier and Type | Method and Description |
---|---|
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()
Deprecated.
Only kept for backwards-compatibility with versionS < 1.3. Will be removed in the future.
|
dispose
getVersion
long getCheckpointId()
Savepoints 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.
@Deprecated Collection<TaskState> getTaskStates()
These are used to restore the snapshot state.
Collection<MasterState> getMasterStates()
Collection<OperatorState> getOperatorStates()
These are used to restore the snapshot state.
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.