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 MetadataSerializer
.
Modifier and Type | Field and Description |
---|---|
static int |
HEADER_MAGIC_NUMBER
Magic number at the beginning of every checkpoint metadata file, for sanity checks.
|
public static final int HEADER_MAGIC_NUMBER
public static void storeCheckpointMetadata(CheckpointMetadata checkpointMetadata, OutputStream out) throws IOException
IOException
public static void storeCheckpointMetadata(CheckpointMetadata checkpointMetadata, DataOutputStream out) throws IOException
IOException
public static void storeCheckpointMetadata(CheckpointMetadata checkpointMetadata, DataOutputStream out, MetadataSerializer serializer) throws IOException
IOException
public static CheckpointMetadata loadCheckpointMetadata(DataInputStream in, ClassLoader classLoader, String externalPointer) throws IOException
IOException
public static CompletedCheckpoint loadAndValidateCheckpoint(JobID jobId, Map<JobVertexID,ExecutionJobVertex> tasks, CompletedCheckpointStorageLocation location, ClassLoader classLoader, boolean allowNonRestoredState, CheckpointProperties checkpointProperties) throws IOException
IOException
public static void disposeSavepoint(String pointer, CheckpointStorage checkpointStorage, 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 jobConfig, Configuration clusterConfig, ClassLoader classLoader, @Nullable org.slf4j.Logger logger)
@Nonnull public static CheckpointStorage loadCheckpointStorage(Configuration jobConfig, Configuration clusterConfig, ClassLoader classLoader, @Nullable org.slf4j.Logger logger)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.