Uses of Class
org.apache.flink.runtime.leaderelection.LeaderInformation
Packages that use LeaderInformation
Package
Description
-
Uses of LeaderInformation in org.apache.flink.runtime.leaderelection
Methods in org.apache.flink.runtime.leaderelection that return LeaderInformationModifier and TypeMethodDescriptionstatic LeaderInformationLeaderInformation.empty()LeaderInformationRegister.forComponentIdOrEmpty(String componentId) Returns aLeaderInformationwhich is empty if noLeaderInformationis stored for the passedcomponentId.static LeaderInformationMethods in org.apache.flink.runtime.leaderelection that return types with arguments of type LeaderInformationModifier and TypeMethodDescriptionLeaderInformationRegister.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 LeaderInformationModifier and TypeMethodDescriptionstatic 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 LeaderInformationModifierConstructorDescriptionLeaderInformationRegister(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 LeaderInformationModifier and TypeMethodDescriptionvoidDefaultLeaderRetrievalService.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 LeaderInformationModifier and TypeMethodDescriptionstatic 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 LeaderInformationModifier and TypeMethodDescriptionLeaderRetrievalUtils.LeaderInformationListener.getLeaderInformationFuture()Methods in org.apache.flink.runtime.util with parameters of type LeaderInformationModifier and TypeMethodDescriptionstatic voidZooKeeperUtils.writeLeaderInformationToZooKeeper(LeaderInformation leaderInformation, org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework curatorFramework, BooleanSupplier hasLeadershipCheck, String connectionInformationPath)