| Modifier and Type | Field and Description |
|---|---|
static int |
VERSION
The savepoint version.
|
| Constructor and Description |
|---|
SavepointV2(long checkpointId,
Collection<OperatorState> operatorStates,
Collection<MasterState> masterStates) |
SavepointV2(long checkpointId,
Collection<TaskState> taskStates)
Deprecated.
Only kept for backwards-compatibility with versions < 1.3. Will be removed in the future.
|
| Modifier and Type | Method and Description |
|---|---|
static Savepoint |
convertToOperatorStateSavepointV2(Map<JobVertexID,ExecutionJobVertex> tasks,
Savepoint savepoint)
Deprecated.
Only kept for backwards-compatibility with versions < 1.3. Will be removed in the future.
|
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
@Deprecated public SavepointV2(long checkpointId, Collection<TaskState> taskStates)
public SavepointV2(long checkpointId,
Collection<OperatorState> operatorStates,
Collection<MasterState> masterStates)
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<OperatorState> getOperatorStates()
SavepointThese are used to restore the snapshot state.
getOperatorStates 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 void dispose()
throws Exception
dispose in interface org.apache.flink.util.DisposableException@Deprecated public static Savepoint convertToOperatorStateSavepointV2(Map<JobVertexID,ExecutionJobVertex> tasks, Savepoint savepoint)
savepoint - savepoint to converttasks - map of all vertices and their job vertex idsCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.