public class Checkpoints extends Object
Stored checkpoint metadata files have the following format:
[MagicNumber (int) | Format Version (int) | Checkpoint Metadata (variable)]
The actual savepoint serialization is version-specific via the SavepointSerializer
.
Modifier and Type | Field and Description |
---|---|
static int |
HEADER_MAGIC_NUMBER
Magic number at the beginning of every checkpoint metadata file, for sanity checks.
|
Modifier and Type | Method and Description |
---|---|
static void |
disposeSavepoint(String pointer,
Configuration configuration,
ClassLoader classLoader,
org.slf4j.Logger logger) |
static void |
disposeSavepoint(String pointer,
StateBackend stateBackend,
ClassLoader classLoader) |
static CompletedCheckpoint |
loadAndValidateCheckpoint(JobID jobId,
Map<JobVertexID,ExecutionJobVertex> tasks,
CompletedCheckpointStorageLocation location,
ClassLoader classLoader,
boolean allowNonRestoredState) |
static Savepoint |
loadCheckpointMetadata(DataInputStream in,
ClassLoader classLoader) |
static StateBackend |
loadStateBackend(Configuration configuration,
ClassLoader classLoader,
org.slf4j.Logger logger) |
static <T extends Savepoint> |
storeCheckpointMetadata(T checkpointMetadata,
DataOutputStream out) |
static <T extends Savepoint> |
storeCheckpointMetadata(T checkpointMetadata,
OutputStream out) |
public static final int HEADER_MAGIC_NUMBER
public static <T extends Savepoint> void storeCheckpointMetadata(T checkpointMetadata, OutputStream out) throws IOException
IOException
public static <T extends Savepoint> void storeCheckpointMetadata(T checkpointMetadata, DataOutputStream out) throws IOException
IOException
public static Savepoint loadCheckpointMetadata(DataInputStream in, ClassLoader classLoader) throws IOException
IOException
public static CompletedCheckpoint loadAndValidateCheckpoint(JobID jobId, Map<JobVertexID,ExecutionJobVertex> tasks, CompletedCheckpointStorageLocation location, ClassLoader classLoader, boolean allowNonRestoredState) throws IOException
IOException
public static void disposeSavepoint(String pointer, StateBackend stateBackend, ClassLoader classLoader) throws IOException, FlinkException
IOException
FlinkException
public static void disposeSavepoint(String pointer, Configuration configuration, ClassLoader classLoader, @Nullable org.slf4j.Logger logger) throws IOException, FlinkException
IOException
FlinkException
@Nonnull public static StateBackend loadStateBackend(Configuration configuration, ClassLoader classLoader, @Nullable org.slf4j.Logger logger)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.