public final class CheckpointUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
commitState(StateStore stateStore,
java.lang.String family,
int componentIndex,
SnapshotImpl snapshot,
CheckpointingClient checkpointingClient,
MessageHandler messageHandler) |
static boolean |
containsJobInStore(java.lang.String jobId,
StateStore stateStore) |
static StateStore |
getStateStore(Config config) |
static byte[] |
restoreJobConfig(java.lang.String jobId,
StateStore stateStore) |
static byte[] |
restoreJobMeta(java.lang.String jobId,
StateStore stateStore) |
static void |
restoreSnapshot(StateStore stateStore,
java.lang.Long version,
SnapshotImpl snapshot) |
static void |
saveJobConfigAndMeta(java.lang.String jobId,
byte[] jobMeta,
byte[] jobConfig,
StateStore stateStore) |
static void |
saveState(StateStore stateStore,
SnapshotImpl snapshot) |
public static void commitState(StateStore stateStore, java.lang.String family, int componentIndex, SnapshotImpl snapshot, CheckpointingClient checkpointingClient, MessageHandler messageHandler) throws java.io.IOException
java.io.IOException
public static void saveState(StateStore stateStore, SnapshotImpl snapshot) throws java.io.IOException
java.io.IOException
public static void restoreSnapshot(StateStore stateStore, java.lang.Long version, SnapshotImpl snapshot) throws java.io.IOException
java.io.IOException
public static StateStore getStateStore(Config config)
public static void saveJobConfigAndMeta(java.lang.String jobId, byte[] jobMeta, byte[] jobConfig, StateStore stateStore) throws java.io.IOException
java.io.IOException
public static byte[] restoreJobConfig(java.lang.String jobId, StateStore stateStore) throws java.io.IOException
java.io.IOException
public static byte[] restoreJobMeta(java.lang.String jobId, StateStore stateStore) throws java.io.IOException
java.io.IOException
public static boolean containsJobInStore(java.lang.String jobId, StateStore stateStore) throws java.io.IOException
java.io.IOException