public class KubernetesCheckpointRecoveryFactory extends Object implements CheckpointRecoveryFactory
CompletedCheckpointStore
and CheckpointIDCounter
.Modifier and Type | Method and Description |
---|---|
CheckpointIDCounter |
createCheckpointIDCounter(JobID jobID)
Creates a
CheckpointIDCounter instance for a job. |
CompletedCheckpointStore |
createRecoveredCompletedCheckpointStore(JobID jobID,
int maxNumberOfCheckpointsToRetain,
SharedStateRegistryFactory sharedStateRegistryFactory,
Executor ioExecutor,
RestoreMode restoreMode)
Creates a RECOVERED
CompletedCheckpointStore instance for a job. |
static KubernetesCheckpointRecoveryFactory |
withLeadershipValidation(FlinkKubeClient kubeClient,
Configuration configuration,
Executor executor,
String clusterId,
Function<JobID,String> function,
String lockIdentity) |
static KubernetesCheckpointRecoveryFactory |
withoutLeadershipValidation(FlinkKubeClient kubeClient,
Configuration configuration,
Executor executor,
String clusterId,
Function<JobID,String> function) |
public CompletedCheckpointStore createRecoveredCompletedCheckpointStore(JobID jobID, int maxNumberOfCheckpointsToRetain, SharedStateRegistryFactory sharedStateRegistryFactory, Executor ioExecutor, RestoreMode restoreMode) throws Exception
CheckpointRecoveryFactory
CompletedCheckpointStore
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 CheckpointRecoveryFactory
jobID
- 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 claim mode with which the job is restoring.CompletedCheckpointStore
instance for the jobException
public CheckpointIDCounter createCheckpointIDCounter(JobID jobID) throws Exception
CheckpointRecoveryFactory
CheckpointIDCounter
instance for a job.createCheckpointIDCounter
in interface CheckpointRecoveryFactory
jobID
- Job ID to recover checkpoints forCheckpointIDCounter
instance for the jobException
public static KubernetesCheckpointRecoveryFactory withLeadershipValidation(FlinkKubeClient kubeClient, Configuration configuration, Executor executor, String clusterId, Function<JobID,String> function, String lockIdentity)
public static KubernetesCheckpointRecoveryFactory withoutLeadershipValidation(FlinkKubeClient kubeClient, Configuration configuration, Executor executor, String clusterId, Function<JobID,String> function)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.