| 程序包 | 说明 |
|---|---|
| org.apache.flink.runtime.leaderelection | |
| org.apache.flink.runtime.leaderretrieval | |
| org.apache.flink.runtime.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static LeaderInformation |
LeaderInformation.empty() |
static LeaderInformation |
LeaderInformation.known(UUID leaderSessionID,
String leaderAddress) |
| 限定符和类型 | 方法和说明 |
|---|---|
static LeaderInformationWithComponentId |
LeaderInformationWithComponentId.create(String componentId,
LeaderInformation leaderInformation) |
void |
MultipleComponentLeaderElectionDriver.Listener.notifyLeaderInformationChange(String componentId,
LeaderInformation leaderInformation)
Notifies the listener about a changed leader information for the given component.
|
void |
DefaultMultipleComponentLeaderElectionService.notifyLeaderInformationChange(String componentId,
LeaderInformation leaderInformation) |
void |
DefaultLeaderElectionService.onLeaderInformationChange(LeaderInformation leaderInformation) |
void |
LeaderElectionEventHandler.onLeaderInformationChange(LeaderInformation leaderInformation)
Called by specific
LeaderElectionDriver when the leader information is changed. |
void |
MultipleComponentLeaderElectionDriver.publishLeaderInformation(String componentId,
LeaderInformation leaderInformation)
Publishes the leader information for the given component.
|
void |
MultipleComponentLeaderElectionService.publishLeaderInformation(String componentId,
LeaderInformation leaderInformation)
Publishes the given leader information for the component identified by the given leader name.
|
void |
ZooKeeperMultipleComponentLeaderElectionDriver.publishLeaderInformation(String componentId,
LeaderInformation leaderInformation) |
void |
DefaultMultipleComponentLeaderElectionService.publishLeaderInformation(String componentId,
LeaderInformation leaderInformation) |
void |
LeaderElectionDriver.writeLeaderInformation(LeaderInformation leaderInformation)
Write the current leader information to external persistent storage(e.g.
|
void |
ZooKeeperLeaderElectionDriver.writeLeaderInformation(LeaderInformation leaderInformation)
已过时。
Writes the current leader's address as well the given leader session ID to ZooKeeper.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
LeaderRetrievalEventHandler.notifyLeaderAddress(LeaderInformation leaderInformation)
Called by specific
LeaderRetrievalDriver to notify leader address. |
void |
DefaultLeaderRetrievalService.notifyLeaderAddress(LeaderInformation leaderInformation)
Called by specific
LeaderRetrievalDriver to notify leader address. |
| 限定符和类型 | 方法和说明 |
|---|---|
static LeaderInformation |
ZooKeeperUtils.readLeaderInformation(byte[] data) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
ZooKeeperUtils.writeLeaderInformationToZooKeeper(LeaderInformation leaderInformation,
org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework curatorFramework,
java.util.function.BooleanSupplier hasLeadershipCheck,
String connectionInformationPath) |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.