public class LeaderRetrievalUtils extends Object
LeaderRetrievalService class.| 限定符和类型 | 类和说明 |
|---|---|
static class |
LeaderRetrievalUtils.LeaderInformationListener
Helper class which is used by the retrieveLeaderInformation method to retrieve the leader's
rpc URL and the current leader session ID.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static InetAddress |
findConnectingAddress(LeaderRetrievalService leaderRetrievalService,
Duration timeout,
org.apache.flink.runtime.rpc.RpcSystemUtils rpcSystemUtils) |
static LeaderInformation |
retrieveLeaderInformation(LeaderRetrievalService leaderRetrievalService,
Duration timeout)
Retrieves the leader pekko url and the current leader session ID.
|
public static LeaderInformation retrieveLeaderInformation(LeaderRetrievalService leaderRetrievalService, Duration timeout) throws LeaderRetrievalException
LeaderInformation instance.leaderRetrievalService - Leader retrieval service to retrieve the leader connection
informationtimeout - Timeout when to give up looking for the leaderLeaderRetrievalExceptionpublic static InetAddress findConnectingAddress(LeaderRetrievalService leaderRetrievalService, Duration timeout, org.apache.flink.runtime.rpc.RpcSystemUtils rpcSystemUtils) throws LeaderRetrievalException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.