Package io.deephaven.server.config
Interface ServerConfig
- All Known Implementing Classes:
JettyConfig,JettyConfig,NettyConfig
public interface ServerConfig
The server configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceServerConfig.Builder<T,B extends ServerConfig.Builder<T, B>> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <B extends ServerConfig.Builder<?,B>>
BbuildFromConfig(B builder, Configuration config) Parses the configuration values into the appropriate builder methods.host()The network interface this server binds to as an IP address or a hostname.default intThe maximum inbound message size.The optional outbound SSL configuration.intport()The port.A hint that the server is running behind a proxy.default intThe scheduler pool size.default DurationHow many do we wait to shut down the server.ssl()The optional SSL configuration.The user-accessible target URL.default StringReturnstargetUrl()if set, otherwise computes a reasonable default based onhost(),port(), andssl().The token expiration.
-
Field Details
-
DEFAULT_SCHEDULER_POOL_SIZE
static final int DEFAULT_SCHEDULER_POOL_SIZE- See Also:
-
DEFAULT_MAX_INBOUND_MESSAGE_SIZE_MiB
static final int DEFAULT_MAX_INBOUND_MESSAGE_SIZE_MiB- See Also:
-
DEFAULT_SHUTDOWN_TIMEOUT_MILLIS
static final int DEFAULT_SHUTDOWN_TIMEOUT_MILLIS- See Also:
-
HTTP_SESSION_DURATION_MS
- See Also:
-
HTTP_HOST
- See Also:
-
HTTP_PORT
- See Also:
-
HTTP_TARGET_URL
- See Also:
-
SCHEDULER_POOL_SIZE
- See Also:
-
GRPC_MAX_INBOUND_MESSAGE_SIZE
- See Also:
-
PROXY_HINT
- See Also:
-
SHUTDOWN_TIMEOUT_MILLIS
- See Also:
-
-
Method Details
-
buildFromConfig
Parses the configuration values into the appropriate builder methods.MainHelper.parseSSLConfig(Configuration)intoServerConfig.Builder.ssl(SSLConfig)andMainHelper.parseOutboundSSLConfig(Configuration)intoServerConfig.Builder.outboundSsl(SSLConfig).See
MainHelper.parseSSLConfig(Configuration)forServerConfig.Builder.ssl(SSLConfig).- Type Parameters:
B- the builder type- Parameters:
builder- the builderconfig- the configuration- Returns:
- the builder
-
host
The network interface this server binds to as an IP address or a hostname. If not set, then bind to all interfaces. -
port
int port()The port. -
targetUrl
The user-accessible target URL. -
ssl
The optional SSL configuration. -
outboundSsl
The optional outbound SSL configuration. -
tokenExpire
Duration tokenExpire()The token expiration. -
schedulerPoolSize
@Default default int schedulerPoolSize()The scheduler pool size. Defaults to 4. -
maxInboundMessageSize
@Default default int maxInboundMessageSize()The maximum inbound message size. Defaults to 100 MiB. -
shutdownTimeout
How many do we wait to shut down the server. Defaults to 10000. -
proxyHint
A hint that the server is running behind a proxy. This may allow consumers of the configuration to make more appropriate default choices. -
targetUrlOrDefault
ReturnstargetUrl()if set, otherwise computes a reasonable default based onhost(),port(), andssl().- Returns:
- the target URL or default
-