public class PekkoRpcServiceUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PekkoRpcServiceUtils.Protocol
Whether to use TCP or encrypted TCP for Pekko.
|
Modifier and Type | Method and Description |
---|---|
static long |
extractMaximumFramesize(Configuration configuration) |
static String |
getLocalRpcUrl(String endpointName) |
static String |
getRpcUrl(String hostname,
int port,
String endpointName,
AddressResolution addressResolution,
Configuration config) |
static String |
getRpcUrl(String hostname,
int port,
String endpointName,
AddressResolution addressResolution,
PekkoRpcServiceUtils.Protocol protocol) |
static boolean |
isRecipientTerminatedException(Throwable exception) |
public static 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
public static String getRpcUrl(String hostname, int port, String endpointName, AddressResolution addressResolution, PekkoRpcServiceUtils.Protocol protocol) 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.protocol
- True, if security/encryption is enabled, false otherwise.UnknownHostException
public static boolean isRecipientTerminatedException(Throwable exception)
public static long extractMaximumFramesize(Configuration configuration)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.