Interface LeaderRetrievalDriverFactory
-
- All Known Implementing Classes:
ZooKeeperLeaderRetrievalDriverFactory
public interface LeaderRetrievalDriverFactoryFactory for creatingLeaderRetrievalDriverwith different implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LeaderRetrievalDrivercreateLeaderRetrievalDriver(LeaderRetrievalEventHandler leaderEventHandler, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler)Create a specificLeaderRetrievalDriverand start the necessary services.
-
-
-
Method Detail
-
createLeaderRetrievalDriver
LeaderRetrievalDriver createLeaderRetrievalDriver(LeaderRetrievalEventHandler leaderEventHandler, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler) throws Exception
Create a specificLeaderRetrievalDriverand start the necessary services. For example, NodeCache in Zookeeper, ConfigMap watcher in Kubernetes. They could get the leader information change events and need to notify the leader listener byLeaderRetrievalEventHandler.- Parameters:
leaderEventHandler- handler for the leader retrieval driver to notify leader change events.fatalErrorHandler- fatal error handler- Throws:
Exception- when create a specificLeaderRetrievalDriverimplementation and start the necessary services.
-
-