public class KubernetesCheckpointIDCounter extends Object implements org.apache.flink.runtime.checkpoint.CheckpointIDCounter
CheckpointIDCounter implementation for Kubernetes. The counter will be stored in
JobManager-JobID-leader ConfigMap. The key is Constants.CHECKPOINT_COUNTER_KEY, and value is counter value.| Constructor and Description |
|---|
KubernetesCheckpointIDCounter(FlinkKubeClient kubeClient,
String configMapName,
String lockIdentity) |
| Modifier and Type | Method and Description |
|---|---|
long |
get() |
long |
getAndIncrement() |
void |
setCount(long newCount) |
void |
shutdown(org.apache.flink.api.common.JobStatus jobStatus) |
void |
start() |
public KubernetesCheckpointIDCounter(FlinkKubeClient kubeClient, String configMapName, String lockIdentity)
public void start()
start in interface org.apache.flink.runtime.checkpoint.CheckpointIDCounterpublic void shutdown(org.apache.flink.api.common.JobStatus jobStatus)
shutdown in interface org.apache.flink.runtime.checkpoint.CheckpointIDCounterpublic long getAndIncrement()
throws Exception
getAndIncrement in interface org.apache.flink.runtime.checkpoint.CheckpointIDCounterExceptionpublic long get()
get in interface org.apache.flink.runtime.checkpoint.CheckpointIDCounterCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.