public class KubernetesLeaderElectionDriverFactory extends Object implements LeaderElectionDriverFactory
LeaderElectionDriverFactory
implementation for Kubernetes.Constructor and Description |
---|
KubernetesLeaderElectionDriverFactory(FlinkKubeClient kubeClient,
KubernetesLeaderElectionConfiguration leaderConfig) |
Modifier and Type | Method and Description |
---|---|
KubernetesLeaderElectionDriver |
createLeaderElectionDriver(LeaderElectionEventHandler leaderEventHandler,
FatalErrorHandler fatalErrorHandler,
String leaderContenderDescription)
Create a specific
LeaderElectionDriver and start the necessary services. |
public KubernetesLeaderElectionDriverFactory(FlinkKubeClient kubeClient, KubernetesLeaderElectionConfiguration leaderConfig)
public KubernetesLeaderElectionDriver createLeaderElectionDriver(LeaderElectionEventHandler leaderEventHandler, FatalErrorHandler fatalErrorHandler, String leaderContenderDescription)
LeaderElectionDriverFactory
LeaderElectionDriver
and start the necessary services. For example,
LeaderLatch and NodeCache in Zookeeper, KubernetesLeaderElector and ConfigMap watcher in
Kubernetes.createLeaderElectionDriver
in interface LeaderElectionDriverFactory
leaderEventHandler
- handler for the leader election driver to process leader events.fatalErrorHandler
- fatal error handlerleaderContenderDescription
- leader contender description.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.