Uses of Class
org.apache.flink.runtime.leaderelection.LeaderInformation
-
Packages that use LeaderInformation Package Description org.apache.flink.runtime.leaderelection org.apache.flink.runtime.leaderretrieval org.apache.flink.runtime.util -
-
Uses of LeaderInformation in org.apache.flink.runtime.leaderelection
Methods in org.apache.flink.runtime.leaderelection that return LeaderInformation Modifier and Type Method Description static LeaderInformationLeaderInformation. empty()LeaderInformationLeaderInformationRegister. forComponentIdOrEmpty(String componentId)Returns aLeaderInformationwhich is empty if noLeaderInformationis stored for the passedcomponentId.static LeaderInformationLeaderInformation. known(UUID leaderSessionID, String leaderAddress)Methods in org.apache.flink.runtime.leaderelection that return types with arguments of type LeaderInformation Modifier and Type Method Description Optional<LeaderInformation>LeaderInformationRegister. forComponentId(String componentId)Returns theLeaderInformationthat is stored or an emptyOptionalif no entry exists for the passedcomponentId.Methods in org.apache.flink.runtime.leaderelection with parameters of type LeaderInformation Modifier and Type Method Description static StringLeaderElectionUtils. convertToString(LeaderInformation leaderInformation)Converts the passedLeaderInformationinto a human-readable representation that can be used in log messages.static LeaderInformationRegisterLeaderInformationRegister. merge(LeaderInformationRegister leaderInformationRegister, String componentId, LeaderInformation leaderInformation)Merges anotherLeaderInformationRegisterwith additional leader information into a newLeaderInformationRegisterinstance.static LeaderInformationRegisterLeaderInformationRegister. of(String componentId, LeaderInformation leaderInformation)Creates a single-entry instance containing only the passed information.voidDefaultLeaderElectionService. onLeaderInformationChange(String componentId, LeaderInformation leaderInformation)voidLeaderElectionDriver.Listener. onLeaderInformationChange(String componentId, LeaderInformation leaderInformation)Notifies the listener about a changed leader information for the given component.voidLeaderElectionDriver. publishLeaderInformation(String componentId, LeaderInformation leaderInformation)Publishes the leader information for the given component.voidZooKeeperLeaderElectionDriver. publishLeaderInformation(String componentId, LeaderInformation leaderInformation)Constructor parameters in org.apache.flink.runtime.leaderelection with type arguments of type LeaderInformation Constructor Description LeaderInformationRegister(Map<String,LeaderInformation> leaderInformationPerComponentId)Creates aLeaderInformationRegisterbased on the passed leader information. -
Uses of LeaderInformation in org.apache.flink.runtime.leaderretrieval
Methods in org.apache.flink.runtime.leaderretrieval with parameters of type LeaderInformation Modifier and Type Method Description voidDefaultLeaderRetrievalService. notifyLeaderAddress(LeaderInformation leaderInformation)Called by specificLeaderRetrievalDriverto notify leader address.voidLeaderRetrievalEventHandler. notifyLeaderAddress(LeaderInformation leaderInformation)Called by specificLeaderRetrievalDriverto notify leader address. -
Uses of LeaderInformation in org.apache.flink.runtime.util
Methods in org.apache.flink.runtime.util that return LeaderInformation Modifier and Type Method Description static LeaderInformationZooKeeperUtils. readLeaderInformation(byte[] data)static LeaderInformationLeaderRetrievalUtils. retrieveLeaderInformation(LeaderRetrievalService leaderRetrievalService, Duration timeout)Retrieves the leader pekko url and the current leader session ID.Methods in org.apache.flink.runtime.util that return types with arguments of type LeaderInformation Modifier and Type Method Description CompletableFuture<LeaderInformation>LeaderRetrievalUtils.LeaderInformationListener. getLeaderInformationFuture()Methods in org.apache.flink.runtime.util with parameters of type LeaderInformation Modifier and Type Method Description static voidZooKeeperUtils. writeLeaderInformationToZooKeeper(LeaderInformation leaderInformation, org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework curatorFramework, BooleanSupplier hasLeadershipCheck, String connectionInformationPath)
-