Interface LeaderRetrievalDriverFactory

    • Method Detail

      • createLeaderRetrievalDriver

        LeaderRetrievalDriver createLeaderRetrievalDriver​(LeaderRetrievalEventHandler leaderEventHandler,
                                                          org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler)
                                                   throws Exception
        Create a specific LeaderRetrievalDriver and 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 by LeaderRetrievalEventHandler.
        Parameters:
        leaderEventHandler - handler for the leader retrieval driver to notify leader change events.
        fatalErrorHandler - fatal error handler
        Throws:
        Exception - when create a specific LeaderRetrievalDriver implementation and start the necessary services.