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(Configuration config)
Loads the RpcSystem.
|
RpcSystem.RpcServiceBuilder |
localServiceBuilder(Configuration configuration)
Returns a builder for an
RpcService that is only reachable from the local machine. |
RpcSystem.RpcServiceBuilder |
remoteServiceBuilder(Configuration configuration,
String externalAddress,
String externalPortRange)
Returns a builder for an
RpcService that is reachable from other machines. |
getInetSocketAddressFromRpcUrl, getMaximumMessageSizeInBytes, getRpcUrl
RpcSystem.RpcServiceBuilder localServiceBuilder(Configuration configuration)
RpcService
that is only reachable from the local machine.configuration
- Flink configurationRpcSystem.RpcServiceBuilder remoteServiceBuilder(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 AutoCloseable
static RpcSystem load()
static RpcSystem load(Configuration config)
config
- Flink configurationCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.