| Package | Description |
|---|---|
| org.apache.flink.runtime.leaderelection | |
| org.apache.flink.runtime.leaderretrieval | |
| org.apache.flink.runtime.util |
| Modifier and Type | Method and Description |
|---|---|
static LeaderInformation |
LeaderInformation.empty() |
LeaderInformation |
LeaderInformationRegister.forComponentIdOrEmpty(String componentId)
Returns a
LeaderInformation which is empty if no LeaderInformation is stored
for the passed componentId. |
static LeaderInformation |
LeaderInformation.known(UUID leaderSessionID,
String leaderAddress) |
| Modifier and Type | Method and Description |
|---|---|
Optional<LeaderInformation> |
LeaderInformationRegister.forComponentId(String componentId)
Returns the
LeaderInformation that is stored or an empty Optional if no entry
exists for the passed componentId. |
| Modifier and Type | Method and Description |
|---|---|
static String |
LeaderElectionUtils.convertToString(LeaderInformation leaderInformation)
Converts the passed
LeaderInformation into a human-readable representation that can
be used in log messages. |
static LeaderInformationRegister |
LeaderInformationRegister.merge(LeaderInformationRegister leaderInformationRegister,
String componentId,
LeaderInformation leaderInformation)
Merges another
LeaderInformationRegister with additional leader information into a
new LeaderInformationRegister instance. |
static LeaderInformationRegister |
LeaderInformationRegister.of(String componentId,
LeaderInformation leaderInformation)
Creates a single-entry instance containing only the passed information.
|
void |
DefaultLeaderElectionService.onLeaderInformationChange(String componentId,
LeaderInformation leaderInformation) |
void |
LeaderElectionDriver.Listener.onLeaderInformationChange(String componentId,
LeaderInformation leaderInformation)
Notifies the listener about a changed leader information for the given component.
|
void |
LeaderElectionDriver.publishLeaderInformation(String componentId,
LeaderInformation leaderInformation)
Publishes the leader information for the given component.
|
void |
ZooKeeperLeaderElectionDriver.publishLeaderInformation(String componentId,
LeaderInformation leaderInformation) |
| Constructor and Description |
|---|
LeaderInformationRegister(Map<String,LeaderInformation> leaderInformationPerComponentId)
Creates a
LeaderInformationRegister based on the passed leader information. |
| Modifier and Type | Method and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
static LeaderInformation |
ZooKeeperUtils.readLeaderInformation(byte[] data) |
static LeaderInformation |
LeaderRetrievalUtils.retrieveLeaderInformation(LeaderRetrievalService leaderRetrievalService,
java.time.Duration timeout)
Retrieves the leader pekko url and the current leader session ID.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<LeaderInformation> |
LeaderRetrievalUtils.LeaderInformationListener.getLeaderInformationFuture() |
| Modifier and Type | Method and Description |
|---|---|
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–2024 The Apache Software Foundation. All rights reserved.