Package io.deephaven.server.netty
Class NettyConfig
java.lang.Object
io.deephaven.server.netty.NettyConfig
- All Implemented Interfaces:
ServerConfig
The netty server configuration.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from interface io.deephaven.server.config.ServerConfig
DEFAULT_MAX_INBOUND_MESSAGE_SIZE_MiB, DEFAULT_SCHEDULER_POOL_SIZE, DEFAULT_SHUTDOWN_TIMEOUT_MILLIS, GRPC_MAX_INBOUND_MESSAGE_SIZE, HTTP_HOST, HTTP_PORT, HTTP_SESSION_DURATION_MS, HTTP_TARGET_URL, PROXY_HINT, SCHEDULER_POOL_SIZE, SHUTDOWN_TIMEOUT_MILLIS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NettyConfig.Builderbuilder()static NettyConfig.BuilderbuildFromConfig(Configuration config) Parses the configuration values into the appropriate builder methods viaServerConfig.buildFromConfig(ServerConfig.Builder, Configuration).static NettyConfigThe default configuration is suitable for local development purposes.intport()The port.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.server.config.ServerConfig
host, maxInboundMessageSize, outboundSsl, proxyHint, schedulerPoolSize, shutdownTimeout, ssl, targetUrl, targetUrlOrDefault, tokenExpire
-
Field Details
-
DEFAULT_SSL_PORT
public static final int DEFAULT_SSL_PORT- See Also:
-
DEFAULT_PLAINTEXT_PORT
public static final int DEFAULT_PLAINTEXT_PORT- See Also:
-
-
Constructor Details
-
NettyConfig
public NettyConfig()
-
-
Method Details
-
builder
-
defaultConfig
The default configuration is suitable for local development purposes. It inherits all of the defaults, which are documented on each individual method. In brief, the default server starts up on all interfaces with plaintext port 8080, a scheduler pool size of 4, and a max inbound message size of 100 MiB. -
buildFromConfig
Parses the configuration values into the appropriate builder methods viaServerConfig.buildFromConfig(ServerConfig.Builder, Configuration).- Parameters:
config- the config- Returns:
- the builder
-
port
@Default public int port()- Specified by:
portin interfaceServerConfig
-