Package com.yahoo.jdisc.http
Class ServerConfig
- java.lang.Object
-
- com.yahoo.config.Node
-
- com.yahoo.config.InnerNode
-
- com.yahoo.config.ConfigInstance
-
- com.yahoo.jdisc.http.ServerConfig
-
public final class ServerConfig extends com.yahoo.config.ConfigInstance
This class represents the root node of server Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerConfig.AccessLog
This class represents server.accessLogstatic class
ServerConfig.Builder
static class
ServerConfig.ConnectionLog
This class represents server.connectionLogstatic class
ServerConfig.DefaultFilters
This class represents server.defaultFilters[]static class
ServerConfig.Filter
This class represents server.filter[]static class
ServerConfig.Jmx
This class represents server.jmxstatic class
ServerConfig.Metric
This class represents server.metricstatic interface
ServerConfig.Producer
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_DEF_MD5
static java.lang.String
CONFIG_DEF_NAME
static java.lang.String
CONFIG_DEF_NAMESPACE
static java.lang.String[]
CONFIG_DEF_SCHEMA
static java.lang.String
CONFIG_DEF_VERSION
-
Constructor Summary
Constructors Constructor Description ServerConfig(ServerConfig.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerConfig.AccessLog
accessLog()
ServerConfig.ConnectionLog
connectionLog()
java.util.List<ServerConfig.DefaultFilters>
defaultFilters()
ServerConfig.DefaultFilters
defaultFilters(int i)
boolean
developerMode()
java.util.List<ServerConfig.Filter>
filter()
ServerConfig.Filter
filter(int i)
static java.lang.String
getDefMd5()
static java.lang.String
getDefName()
static java.lang.String
getDefNamespace()
static java.lang.String
getDefVersion()
boolean
httpKeepAliveEnabled()
ServerConfig.Jmx
jmx()
int
maxKeepAliveRequests()
int
maxWorkerThreads()
ServerConfig.Metric
metric()
int
minWorkerThreads()
boolean
removeRawPostBodyForWwwUrlEncodedPost()
int
responseCompressionLevel()
double
stopTimeout()
boolean
strictFiltering()
-
Methods inherited from class com.yahoo.config.ConfigInstance
getConfigMd5, getDefName, getDefNamespace, serialize, serialize, setConfigMd5
-
-
-
-
Field Detail
-
CONFIG_DEF_MD5
public static final java.lang.String CONFIG_DEF_MD5
- See Also:
- Constant Field Values
-
CONFIG_DEF_NAME
public static final java.lang.String CONFIG_DEF_NAME
- See Also:
- Constant Field Values
-
CONFIG_DEF_NAMESPACE
public static final java.lang.String CONFIG_DEF_NAMESPACE
- See Also:
- Constant Field Values
-
CONFIG_DEF_VERSION
public static final java.lang.String CONFIG_DEF_VERSION
- See Also:
- Constant Field Values
-
CONFIG_DEF_SCHEMA
public static final java.lang.String[] CONFIG_DEF_SCHEMA
-
-
Constructor Detail
-
ServerConfig
public ServerConfig(ServerConfig.Builder builder)
-
-
Method Detail
-
getDefMd5
public static java.lang.String getDefMd5()
-
getDefName
public static java.lang.String getDefName()
-
getDefNamespace
public static java.lang.String getDefNamespace()
-
getDefVersion
public static java.lang.String getDefVersion()
-
developerMode
public boolean developerMode()
- Returns:
- server.developerMode
-
responseCompressionLevel
public int responseCompressionLevel()
- Returns:
- server.responseCompressionLevel
-
httpKeepAliveEnabled
public boolean httpKeepAliveEnabled()
- Returns:
- server.httpKeepAliveEnabled
-
maxKeepAliveRequests
public int maxKeepAliveRequests()
- Returns:
- server.maxKeepAliveRequests
-
removeRawPostBodyForWwwUrlEncodedPost
public boolean removeRawPostBodyForWwwUrlEncodedPost()
- Returns:
- server.removeRawPostBodyForWwwUrlEncodedPost
-
filter
public java.util.List<ServerConfig.Filter> filter()
- Returns:
- server.filter[]
-
filter
public ServerConfig.Filter filter(int i)
- Parameters:
i
- the index of the value to return- Returns:
- server.filter[]
-
defaultFilters
public java.util.List<ServerConfig.DefaultFilters> defaultFilters()
- Returns:
- server.defaultFilters[]
-
defaultFilters
public ServerConfig.DefaultFilters defaultFilters(int i)
- Parameters:
i
- the index of the value to return- Returns:
- server.defaultFilters[]
-
strictFiltering
public boolean strictFiltering()
- Returns:
- server.strictFiltering
-
maxWorkerThreads
public int maxWorkerThreads()
- Returns:
- server.maxWorkerThreads
-
minWorkerThreads
public int minWorkerThreads()
- Returns:
- server.minWorkerThreads
-
stopTimeout
public double stopTimeout()
- Returns:
- server.stopTimeout
-
jmx
public ServerConfig.Jmx jmx()
- Returns:
- server.jmx
-
metric
public ServerConfig.Metric metric()
- Returns:
- server.metric
-
accessLog
public ServerConfig.AccessLog accessLog()
- Returns:
- server.accessLog
-
connectionLog
public ServerConfig.ConnectionLog connectionLog()
- Returns:
- server.connectionLog
-
-