Class ZooKeeperLeaderRetrievalDriver

    • Constructor Detail

      • ZooKeeperLeaderRetrievalDriver

        public ZooKeeperLeaderRetrievalDriver​(org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework client,
                                              String path,
                                              LeaderRetrievalEventHandler leaderRetrievalEventHandler,
                                              ZooKeeperLeaderRetrievalDriver.LeaderInformationClearancePolicy leaderInformationClearancePolicy,
                                              org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler)
                                       throws Exception
        Creates a leader retrieval service which uses ZooKeeper to retrieve the leader information.
        Parameters:
        client - Client which constitutes the connection to the ZooKeeper quorum
        path - Path of the ZooKeeper node which contains the leader information
        leaderRetrievalEventHandler - Handler to notify the leader changes.
        leaderInformationClearancePolicy - leaderInformationClearancePolicy controls when the leader information is being cleared
        fatalErrorHandler - Fatal error handler
        Throws:
        Exception