Class KubernetesCheckpointRecoveryFactory
java.lang.Object
org.apache.flink.kubernetes.highavailability.KubernetesCheckpointRecoveryFactory
- All Implemented Interfaces:
org.apache.flink.runtime.checkpoint.CheckpointRecoveryFactory
public class KubernetesCheckpointRecoveryFactory
extends Object
implements org.apache.flink.runtime.checkpoint.CheckpointRecoveryFactory
Factory to create
CompletedCheckpointStore and CheckpointIDCounter.-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.runtime.checkpoint.CheckpointIDCountercreateCheckpointIDCounter(org.apache.flink.api.common.JobID jobID) org.apache.flink.runtime.checkpoint.CompletedCheckpointStorecreateRecoveredCompletedCheckpointStore(org.apache.flink.api.common.JobID jobID, int maxNumberOfCheckpointsToRetain, org.apache.flink.runtime.state.SharedStateRegistryFactory sharedStateRegistryFactory, Executor ioExecutor, org.apache.flink.core.execution.RecoveryClaimMode recoveryClaimMode) withLeadershipValidation(FlinkKubeClient kubeClient, org.apache.flink.configuration.Configuration configuration, Executor executor, String clusterId, Function<org.apache.flink.api.common.JobID, String> function, String lockIdentity) withoutLeadershipValidation(FlinkKubeClient kubeClient, org.apache.flink.configuration.Configuration configuration, Executor executor, String clusterId, Function<org.apache.flink.api.common.JobID, String> function)
-
Method Details
-
createCheckpointIDCounter
public org.apache.flink.runtime.checkpoint.CheckpointIDCounter createCheckpointIDCounter(org.apache.flink.api.common.JobID jobID) throws Exception - Specified by:
createCheckpointIDCounterin interfaceorg.apache.flink.runtime.checkpoint.CheckpointRecoveryFactory- Throws:
Exception
-
withLeadershipValidation
public static KubernetesCheckpointRecoveryFactory withLeadershipValidation(FlinkKubeClient kubeClient, org.apache.flink.configuration.Configuration configuration, Executor executor, String clusterId, Function<org.apache.flink.api.common.JobID, String> function, String lockIdentity) -
withoutLeadershipValidation
public static KubernetesCheckpointRecoveryFactory withoutLeadershipValidation(FlinkKubeClient kubeClient, org.apache.flink.configuration.Configuration configuration, Executor executor, String clusterId, Function<org.apache.flink.api.common.JobID, String> function)