public class ZooKeeperCheckpointRecoveryFactory extends Object implements CheckpointRecoveryFactory
CheckpointCoordinator components in HighAvailabilityMode.ZOOKEEPER.| Constructor and Description |
|---|
ZooKeeperCheckpointRecoveryFactory(org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework client,
org.apache.flink.configuration.Configuration config,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
CheckpointIDCounter |
createCheckpointIDCounter(org.apache.flink.api.common.JobID jobID)
Creates a
CheckpointIDCounter instance for a job. |
CompletedCheckpointStore |
createRecoveredCompletedCheckpointStore(org.apache.flink.api.common.JobID jobId,
int maxNumberOfCheckpointsToRetain,
SharedStateRegistryFactory sharedStateRegistryFactory,
Executor ioExecutor,
RestoreMode restoreMode)
Creates a RECOVERED
CompletedCheckpointStore instance for a job. |
public ZooKeeperCheckpointRecoveryFactory(org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework client,
org.apache.flink.configuration.Configuration config,
Executor executor)
public CompletedCheckpointStore createRecoveredCompletedCheckpointStore(org.apache.flink.api.common.JobID jobId, int maxNumberOfCheckpointsToRetain, SharedStateRegistryFactory sharedStateRegistryFactory, Executor ioExecutor, RestoreMode restoreMode) throws Exception
CheckpointRecoveryFactoryCompletedCheckpointStore instance for a job. In this context,
RECOVERED means, that if we already have completed checkpoints from previous runs, we should
use them as the initial state.createRecoveredCompletedCheckpointStore in interface CheckpointRecoveryFactoryjobId - Job ID to recover checkpoints formaxNumberOfCheckpointsToRetain - Maximum number of checkpoints to retainsharedStateRegistryFactory - Simple factory to produce SharedStateRegistry
objects.ioExecutor - Executor used to run (async) deletes.restoreMode - the restore mode with which the job is restoring.CompletedCheckpointStore instance for the jobExceptionpublic CheckpointIDCounter createCheckpointIDCounter(org.apache.flink.api.common.JobID jobID) throws Exception
CheckpointRecoveryFactoryCheckpointIDCounter instance for a job.createCheckpointIDCounter in interface CheckpointRecoveryFactoryjobID - Job ID to recover checkpoints forCheckpointIDCounter instance for the jobExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.