public class NettyConfig extends Object
Modifier and Type | Field and Description |
---|---|
static ConfigOption<Integer> |
CLIENT_CONNECT_TIMEOUT_SECONDS |
static ConfigOption<Integer> |
CONNECT_BACKLOG |
static ConfigOption<Integer> |
NUM_ARENAS |
static ConfigOption<Integer> |
NUM_THREADS_CLIENT |
static ConfigOption<Integer> |
NUM_THREADS_SERVER |
static ConfigOption<Integer> |
SEND_RECEIVE_BUFFER_SIZE |
static ConfigOption<String> |
TRANSPORT_TYPE |
Constructor and Description |
---|
NettyConfig(InetAddress serverAddress,
int serverPort,
int memorySegmentSize,
int numberOfSlots,
Configuration config) |
Modifier and Type | Method and Description |
---|---|
SSLHandlerFactory |
createClientSSLEngineFactory() |
SSLHandlerFactory |
createServerSSLEngineFactory() |
int |
getClientConnectTimeoutSeconds() |
int |
getClientNumThreads() |
Configuration |
getConfig() |
int |
getNumberOfArenas() |
int |
getNumberOfSlots() |
int |
getSendAndReceiveBufferSize() |
int |
getServerConnectBacklog() |
int |
getServerNumThreads() |
boolean |
getSSLEnabled() |
org.apache.flink.runtime.io.network.netty.NettyConfig.TransportType |
getTransportType() |
boolean |
isCreditBasedEnabled() |
String |
toString() |
public static final ConfigOption<Integer> NUM_ARENAS
public static final ConfigOption<Integer> NUM_THREADS_SERVER
public static final ConfigOption<Integer> NUM_THREADS_CLIENT
public static final ConfigOption<Integer> CONNECT_BACKLOG
public static final ConfigOption<Integer> CLIENT_CONNECT_TIMEOUT_SECONDS
public static final ConfigOption<Integer> SEND_RECEIVE_BUFFER_SIZE
public static final ConfigOption<String> TRANSPORT_TYPE
public NettyConfig(InetAddress serverAddress, int serverPort, int memorySegmentSize, int numberOfSlots, 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
Exception
public boolean getSSLEnabled()
public boolean isCreditBasedEnabled()
public Configuration getConfig()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.