public interface RpcSystem extends RpcSystemUtils, AutoCloseable
| Modifier and Type | Interface and Description |
|---|---|
static class |
RpcSystem.FixedThreadPoolExecutorConfiguration
Descriptor for creating a thread-pool with a fixed number of threads.
|
static class |
RpcSystem.ForkJoinExecutorConfiguration
Descriptor for creating a fork-join thread-pool.
|
static interface |
RpcSystem.RpcServiceBuilder
Builder for
RpcService. |
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Hook to cleanup resources, like common thread pools or classloaders.
|
static RpcSystem |
load()
Loads the RpcSystem.
|
static RpcSystem |
load(org.apache.flink.configuration.Configuration config)
Loads the RpcSystem.
|
RpcSystem.RpcServiceBuilder |
localServiceBuilder(org.apache.flink.configuration.Configuration configuration)
Returns a builder for an
RpcService that is only reachable from the local machine. |
RpcSystem.RpcServiceBuilder |
remoteServiceBuilder(org.apache.flink.configuration.Configuration configuration,
String externalAddress,
String externalPortRange)
Returns a builder for an
RpcService that is reachable from other machines. |
getInetSocketAddressFromRpcUrl, getMaximumMessageSizeInBytes, getRpcUrlRpcSystem.RpcServiceBuilder localServiceBuilder(org.apache.flink.configuration.Configuration configuration)
RpcService that is only reachable from the local machine.configuration - Flink configurationRpcSystem.RpcServiceBuilder remoteServiceBuilder(org.apache.flink.configuration.Configuration configuration, @Nullable String externalAddress, String externalPortRange)
RpcService that is reachable from other machines.configuration - Flink configurationexternalAddress - optional address under which the RpcService should be reachableexternalPortRange - port range from which 1 port will be chosen under which the
RpcService should be reachabledefault void close()
close in interface AutoCloseablestatic RpcSystem load()
static RpcSystem load(org.apache.flink.configuration.Configuration config)
config - Flink configurationCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.