Interface CheckpointRecoveryFactory
-
- All Known Implementing Classes:
PerJobCheckpointRecoveryFactory,StandaloneCheckpointRecoveryFactory,ZooKeeperCheckpointRecoveryFactory
public interface CheckpointRecoveryFactoryA factory for per Job checkpoint recovery components.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CheckpointIDCountercreateCheckpointIDCounter(org.apache.flink.api.common.JobID jobId)Creates aCheckpointIDCounterinstance for a job.CompletedCheckpointStorecreateRecoveredCompletedCheckpointStore(org.apache.flink.api.common.JobID jobId, int maxNumberOfCheckpointsToRetain, SharedStateRegistryFactory sharedStateRegistryFactory, Executor ioExecutor, org.apache.flink.core.execution.RecoveryClaimMode recoveryClaimMode)Creates a RECOVEREDCompletedCheckpointStoreinstance for a job.
-
-
-
Method Detail
-
createRecoveredCompletedCheckpointStore
CompletedCheckpointStore createRecoveredCompletedCheckpointStore(org.apache.flink.api.common.JobID jobId, int maxNumberOfCheckpointsToRetain, SharedStateRegistryFactory sharedStateRegistryFactory, Executor ioExecutor, org.apache.flink.core.execution.RecoveryClaimMode recoveryClaimMode) throws Exception
Creates a RECOVEREDCompletedCheckpointStoreinstance 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.- Parameters:
jobId- Job ID to recover checkpoints formaxNumberOfCheckpointsToRetain- Maximum number of checkpoints to retainsharedStateRegistryFactory- Simple factory to produceSharedStateRegistryobjects.ioExecutor- Executor used to run (async) deletes.recoveryClaimMode- the claim mode with which the job is restoring.- Returns:
CompletedCheckpointStoreinstance for the job- Throws:
Exception
-
createCheckpointIDCounter
CheckpointIDCounter createCheckpointIDCounter(org.apache.flink.api.common.JobID jobId) throws Exception
Creates aCheckpointIDCounterinstance for a job.- Parameters:
jobId- Job ID to recover checkpoints for- Returns:
CheckpointIDCounterinstance for the job- Throws:
Exception
-
-