public interface RpcSystemUtils
| 限定符和类型 | 方法和说明 |
|---|---|
InetSocketAddress |
getInetSocketAddressFromRpcUrl(String url)
Returns an
InetSocketAddress corresponding to the given RPC url. |
long |
getMaximumMessageSizeInBytes(org.apache.flink.configuration.Configuration config)
Returns the maximum number of bytes that an RPC message may carry according to the given
configuration.
|
String |
getRpcUrl(String hostname,
int port,
String endpointName,
AddressResolution addressResolution,
org.apache.flink.configuration.Configuration config)
Constructs an RPC URL for the given parameters, that can be used to connect to the targeted
RpcService.
|
String getRpcUrl(String hostname, int port, String endpointName, AddressResolution addressResolution, org.apache.flink.configuration.Configuration config) throws UnknownHostException
hostname - The hostname or address where the target RPC service is listening.port - The port where the target RPC service is listening.endpointName - The name of the RPC endpoint.addressResolution - Whether to try address resolution of the given hostname or not. This
allows to fail fast in case that the hostname cannot be resolved.config - The configuration from which to deduce further settings.UnknownHostExceptionInetSocketAddress getInetSocketAddressFromRpcUrl(String url) throws Exception
InetSocketAddress corresponding to the given RPC url.url - RPC urlException - if the URL is invalidgetRpcUrl(java.lang.String, int, java.lang.String, org.apache.flink.runtime.rpc.AddressResolution, org.apache.flink.configuration.Configuration)long getMaximumMessageSizeInBytes(org.apache.flink.configuration.Configuration config)
Long.MAX_VALUE should be returned.config - Flink configurationCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.