public class NettyConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.flink.configuration.ConfigOption<Integer> |
CLIENT_CONNECT_TIMEOUT_SECONDS |
static org.apache.flink.configuration.ConfigOption<Integer> |
CONNECT_BACKLOG |
static org.apache.flink.configuration.ConfigOption<Integer> |
NUM_ARENAS |
static org.apache.flink.configuration.ConfigOption<Integer> |
NUM_THREADS_CLIENT |
static org.apache.flink.configuration.ConfigOption<Integer> |
NUM_THREADS_SERVER |
static org.apache.flink.configuration.ConfigOption<Integer> |
SEND_RECEIVE_BUFFER_SIZE |
static org.apache.flink.configuration.ConfigOption<String> |
TRANSPORT_TYPE |
| Constructor and Description |
|---|
NettyConfig(InetAddress serverAddress,
Iterator<Integer> serverPortRange,
int memorySegmentSize,
int numberOfSlots,
org.apache.flink.configuration.Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
SSLHandlerFactory |
createClientSSLEngineFactory() |
SSLHandlerFactory |
createServerSSLEngineFactory() |
int |
getClientConnectTimeoutSeconds() |
int |
getClientNumThreads() |
org.apache.flink.configuration.Configuration |
getConfig() |
int |
getNumberOfArenas() |
int |
getNumberOfSlots() |
int |
getSendAndReceiveBufferSize() |
int |
getServerConnectBacklog() |
int |
getServerNumThreads() |
int |
getServerPort()
Returns the port of this server.
|
boolean |
getSSLEnabled() |
org.apache.flink.runtime.io.network.netty.NettyConfig.TransportType |
getTransportType() |
boolean |
isCreditBasedEnabled() |
void |
setServerPort(int port)
Sets netty server port number from port range
|
String |
toString() |
public static final org.apache.flink.configuration.ConfigOption<Integer> NUM_ARENAS
public static final org.apache.flink.configuration.ConfigOption<Integer> NUM_THREADS_SERVER
public static final org.apache.flink.configuration.ConfigOption<Integer> NUM_THREADS_CLIENT
public static final org.apache.flink.configuration.ConfigOption<Integer> CONNECT_BACKLOG
public static final org.apache.flink.configuration.ConfigOption<Integer> CLIENT_CONNECT_TIMEOUT_SECONDS
public static final org.apache.flink.configuration.ConfigOption<Integer> SEND_RECEIVE_BUFFER_SIZE
public static final org.apache.flink.configuration.ConfigOption<String> TRANSPORT_TYPE
public NettyConfig(InetAddress serverAddress, Iterator<Integer> serverPortRange, int memorySegmentSize, int numberOfSlots, org.apache.flink.configuration.Configuration config)
public int getNumberOfSlots()
public int getServerConnectBacklog()
public int getNumberOfArenas()
public int getServerNumThreads()
public int getClientNumThreads()
public int getClientConnectTimeoutSeconds()
public int getSendAndReceiveBufferSize()
public org.apache.flink.runtime.io.network.netty.NettyConfig.TransportType getTransportType()
@Nullable public SSLHandlerFactory createClientSSLEngineFactory() throws Exception
Exception@Nullable public SSLHandlerFactory createServerSSLEngineFactory() throws Exception
Exceptionpublic boolean getSSLEnabled()
public boolean isCreditBasedEnabled()
public org.apache.flink.configuration.Configuration getConfig()
public int getServerPort()
IllegalStateException - If server has not been started yetpublic void setServerPort(int port)
port - netty server port numberCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.