public interface RpcSystemUtils
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getInetSocketAddressFromRpcUrl(String url)
Returns an
InetSocketAddress corresponding to the given RPC url. |
long |
getMaximumMessageSizeInBytes(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,
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, 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.UnknownHostException
InetSocketAddress 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(Configuration config)
Long.MAX_VALUE
should be returned.config
- Flink configurationCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.