Class PerJobCheckpointRecoveryFactory<T extends CompletedCheckpointStore>
java.lang.Object
org.apache.flink.runtime.checkpoint.PerJobCheckpointRecoveryFactory<T>
- All Implemented Interfaces:
CheckpointRecoveryFactory
public class PerJobCheckpointRecoveryFactory<T extends CompletedCheckpointStore>
extends Object
implements CheckpointRecoveryFactory
Simple
CheckpointRecoveryFactory which creates and keeps separate CompletedCheckpointStore and CheckpointIDCounter for each JobID.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacePerJobCheckpointRecoveryFactory.CheckpointStoreRecoveryHelper<StoreType extends CompletedCheckpointStore>Restores or creates aCompletedCheckpointStore, optionally using an existing one. -
Constructor Summary
ConstructorsConstructorDescriptionPerJobCheckpointRecoveryFactory(PerJobCheckpointRecoveryFactory.CheckpointStoreRecoveryHelper<T> checkpointStoreRecoveryHelper) PerJobCheckpointRecoveryFactory(PerJobCheckpointRecoveryFactory.CheckpointStoreRecoveryHelper<T> checkpointStoreRecoveryHelper, Supplier<CheckpointIDCounter> checkpointIDCounterPerJobFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateCheckpointIDCounter(org.apache.flink.api.common.JobID jobId) Creates aCheckpointIDCounterinstance for a job.createRecoveredCompletedCheckpointStore(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.static <T extends CompletedCheckpointStore>
CheckpointRecoveryFactorywithoutCheckpointStoreRecovery(IntFunction<T> storeFn)
-
Constructor Details
-
PerJobCheckpointRecoveryFactory
public PerJobCheckpointRecoveryFactory(PerJobCheckpointRecoveryFactory.CheckpointStoreRecoveryHelper<T> checkpointStoreRecoveryHelper) -
PerJobCheckpointRecoveryFactory
public PerJobCheckpointRecoveryFactory(PerJobCheckpointRecoveryFactory.CheckpointStoreRecoveryHelper<T> checkpointStoreRecoveryHelper, Supplier<CheckpointIDCounter> checkpointIDCounterPerJobFactory)
-
-
Method Details
-
withoutCheckpointStoreRecovery
@VisibleForTesting public static <T extends CompletedCheckpointStore> CheckpointRecoveryFactory withoutCheckpointStoreRecovery(IntFunction<T> storeFn) -
createCheckpointIDCounter
Description copied from interface:CheckpointRecoveryFactoryCreates aCheckpointIDCounterinstance for a job.- Specified by:
createCheckpointIDCounterin interfaceCheckpointRecoveryFactory- Parameters:
jobId- Job ID to recover checkpoints for- Returns:
CheckpointIDCounterinstance for the job
-