Package org.apache.flink.runtime.leaderretrieval
-
Interface Summary Interface Description LeaderRetrievalDriver ALeaderRetrievalDriver
is responsible for retrieves the current leader which has been elected by theLeaderElectionDriver
.LeaderRetrievalDriverFactory Factory for creatingLeaderRetrievalDriver
with different implementation.LeaderRetrievalEventHandler Interface which should be implemented to notify toLeaderInformation
changes inLeaderRetrievalDriver
.LeaderRetrievalListener Classes which want to be notified about a changing leader by theLeaderRetrievalService
have to implement this interface.LeaderRetrievalService This interface has to be implemented by a service which retrieves the current leader and notifies a listener about it. -
Class Summary Class Description DefaultLeaderRetrievalService The counterpart to theDefaultLeaderElectionService
.StandaloneLeaderRetrievalService Standalone implementation of theLeaderRetrievalService
.ZooKeeperLeaderRetrievalDriver The counterpart to theZooKeeperLeaderElectionDriver
.ZooKeeperLeaderRetrievalDriverFactory LeaderRetrievalDriverFactory
implementation for Zookeeper. -
Enum Summary Enum Description ZooKeeperLeaderRetrievalDriver.LeaderInformationClearancePolicy Policy when to clear the leader information and to notify the listener about it. -
Exception Summary Exception Description LeaderRetrievalException This exception is thrown by theLeaderRetrievalUtils
when the method retrieveLeaderGateway fails to retrieve the current leader's gateway.