public class ZooKeeperCheckpointRecoveryFactory extends Object implements CheckpointRecoveryFactory
CheckpointCoordinator components in RecoveryMode.ZOOKEEPER.NUMBER_OF_SUCCESSFUL_CHECKPOINTS_TO_RETAIN| Constructor and Description |
|---|
ZooKeeperCheckpointRecoveryFactory(org.apache.curator.framework.CuratorFramework client,
org.apache.flink.configuration.Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
CheckpointIDCounter |
createCheckpointIDCounter(org.apache.flink.api.common.JobID jobID)
Creates a
CheckpointIDCounter instance for a job. |
CompletedCheckpointStore |
createCompletedCheckpoints(org.apache.flink.api.common.JobID jobId,
ClassLoader userClassLoader)
Creates a
CompletedCheckpointStore instance for a job. |
void |
start()
Starts the
CheckpointRecoveryFactory service. |
void |
stop()
Stops the
CheckpointRecoveryFactory service. |
public ZooKeeperCheckpointRecoveryFactory(org.apache.curator.framework.CuratorFramework client,
org.apache.flink.configuration.Configuration config)
public void start()
CheckpointRecoveryFactoryCheckpointRecoveryFactory service.start in interface CheckpointRecoveryFactorypublic void stop()
CheckpointRecoveryFactoryCheckpointRecoveryFactory service.stop in interface CheckpointRecoveryFactorypublic CompletedCheckpointStore createCompletedCheckpoints(org.apache.flink.api.common.JobID jobId, ClassLoader userClassLoader) throws Exception
CheckpointRecoveryFactoryCompletedCheckpointStore instance for a job.createCompletedCheckpoints in interface CheckpointRecoveryFactoryjobId - Job ID to recover checkpoints foruserClassLoader - User code class loader of the jobCompletedCheckpointStore 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–2016 The Apache Software Foundation. All rights reserved.