public class SavepointV2 extends Object implements Savepoint
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()
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
@Deprecated public SavepointV2(long checkpointId, Collection<TaskState> taskStates)
public SavepointV2(long checkpointId, Collection<OperatorState> operatorStates, Collection<MasterState> masterStates)
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<OperatorState> getOperatorStates()
Savepoint
These are used to restore the snapshot state.
getOperatorStates
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 void dispose() throws Exception
Disposable
dispose
in interface Disposable
Exception
- if something goes wrong during disposal.@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.