public class SavepointV1 extends Object implements Savepoint
This format was introduced with Flink 1.1.0.
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()
Disposes the object and releases all resources.
|
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()
Returns the version number of the object.
|
String |
toString() |
public static final int VERSION
public SavepointV1(long checkpointId, Collection<TaskState> taskStates)
public int getVersion()
Versioned
getVersion
in interface Versioned
public long getCheckpointId()
Savepoint
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.
getCheckpointId
in interface Savepoint
public Collection<TaskState> getTaskStates()
Savepoint
These are used to restore the snapshot state.
getTaskStates
in interface Savepoint
public Collection<MasterState> getMasterStates()
Savepoint
getMasterStates
in interface Savepoint
public Collection<OperatorState> getOperatorStates()
Savepoint
These are used to restore the snapshot state.
getOperatorStates
in interface Savepoint
public void dispose() throws Exception
Disposable
dispose
in interface Disposable
Exception
- if something goes wrong during disposal.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.