| 程序包 | 说明 |
|---|---|
| org.apache.flink.runtime.leaderelection | |
| org.apache.flink.runtime.leaderretrieval |
| 限定符和类型 | 方法和说明 |
|---|---|
static LeaderInformation |
LeaderInformation.empty() |
static LeaderInformation |
LeaderInformation.known(UUID leaderSessionID,
String leaderAddress) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DefaultLeaderElectionService.onLeaderInformationChange(LeaderInformation leaderInformation) |
void |
LeaderElectionEventHandler.onLeaderInformationChange(LeaderInformation leaderInformation)
Called by specific
LeaderElectionDriver when the leader information is changed. |
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. |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.