public class ZooKeeperLeaderElectionDriverFactory extends Object implements LeaderElectionDriverFactory
LeaderElectionDriverFactory implementation for Zookeeper.| Constructor and Description |
|---|
ZooKeeperLeaderElectionDriverFactory(org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework client,
String path)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ZooKeeperLeaderElectionDriver |
createLeaderElectionDriver(LeaderElectionEventHandler leaderEventHandler,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler,
String leaderContenderDescription)
Deprecated.
Create a specific
LeaderElectionDriver and start the necessary services. |
public ZooKeeperLeaderElectionDriverFactory(org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework client,
String path)
public ZooKeeperLeaderElectionDriver createLeaderElectionDriver(LeaderElectionEventHandler leaderEventHandler, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler, String leaderContenderDescription) throws Exception
LeaderElectionDriverFactoryLeaderElectionDriver and start the necessary services. For example,
LeaderLatch and NodeCache in Zookeeper, KubernetesLeaderElector and ConfigMap watcher in
Kubernetes.createLeaderElectionDriver in interface LeaderElectionDriverFactoryleaderEventHandler - handler for the leader election driver to process leader events.fatalErrorHandler - fatal error handlerleaderContenderDescription - leader contender description.Exception - when create a specific LeaderElectionDriver implementation and
start the necessary services.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.