Class ServerConfig
- java.lang.Object
-
- org.apache.druid.server.initialization.ServerConfig
-
public class ServerConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_GZIP_INFLATE_BUFFER_SIZE
-
Constructor Summary
Constructors Constructor Description ServerConfig()ServerConfig(boolean enableQueryRequestsQueuing)ServerConfig(int numThreads, int queueSize, boolean enableRequestLimit, @NotNull org.joda.time.Period maxIdleTime, long defaultQueryTimeout, long maxScatterGatherBytes, int maxSubqueryRows, String maxSubqueryBytes, boolean useNestedForUnknownTypeInSubquery, long maxQueryTimeout, int maxRequestHeaderSize, @NotNull org.joda.time.Period gracefulShutdownTimeout, @NotNull org.joda.time.Period unannouncePropagationDelay, int inflateBufferSize, int compressionLevel, boolean enableForwardedRequestCustomizer, @NotNull List<String> allowedHttpMethods, boolean showDetailedJettyErrors, @NotNull org.apache.druid.common.exception.ErrorResponseTransformStrategy errorResponseTransformStrategy, String contentSecurityPolicy, boolean enableHSTS)The ServerConfig is normally created usingJsonConfigProviderbinding.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)@NotNull List<String>getAllowedHttpMethods()intgetCompressionLevel()StringgetContentSecurityPolicy()static intgetDefaultNumThreads()longgetDefaultQueryTimeout()org.apache.druid.common.exception.ErrorResponseTransformStrategygetErrorResponseTransformStrategy()org.joda.time.PeriodgetGracefulShutdownTimeout()intgetInflateBufferSize()org.joda.time.PeriodgetMaxIdleTime()longgetMaxQueryTimeout()intgetMaxRequestHeaderSize()longgetMaxScatterGatherBytes()StringgetMaxSubqueryBytes()intgetMaxSubqueryRows()intgetNumThreads()intgetQueueSize()org.joda.time.PeriodgetUnannouncePropagationDelay()inthashCode()booleanisEnableForwardedRequestCustomizer()booleanisEnableHSTS()booleanisEnableQueryRequestsQueuing()booleanisEnableRequestLimit()booleanisShowDetailedJettyErrors()booleanisuseNestedForUnknownTypeInSubquery()StringtoString()
-
-
-
Field Detail
-
DEFAULT_GZIP_INFLATE_BUFFER_SIZE
public static final int DEFAULT_GZIP_INFLATE_BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServerConfig
public ServerConfig(int numThreads, int queueSize, boolean enableRequestLimit, @NotNull @NotNull org.joda.time.Period maxIdleTime, long defaultQueryTimeout, long maxScatterGatherBytes, int maxSubqueryRows, String maxSubqueryBytes, boolean useNestedForUnknownTypeInSubquery, long maxQueryTimeout, int maxRequestHeaderSize, @NotNull @NotNull org.joda.time.Period gracefulShutdownTimeout, @NotNull @NotNull org.joda.time.Period unannouncePropagationDelay, int inflateBufferSize, int compressionLevel, boolean enableForwardedRequestCustomizer, @NotNull @NotNull List<String> allowedHttpMethods, boolean showDetailedJettyErrors, @NotNull @NotNull org.apache.druid.common.exception.ErrorResponseTransformStrategy errorResponseTransformStrategy, @Nullable String contentSecurityPolicy, boolean enableHSTS)The ServerConfig is normally created usingJsonConfigProviderbinding. This constructor is provided for callers that need to create a ServerConfig object with specific field values.
-
ServerConfig
public ServerConfig()
-
ServerConfig
public ServerConfig(boolean enableQueryRequestsQueuing)
-
-
Method Detail
-
getNumThreads
public int getNumThreads()
-
getQueueSize
public int getQueueSize()
-
isEnableRequestLimit
public boolean isEnableRequestLimit()
-
getMaxIdleTime
public org.joda.time.Period getMaxIdleTime()
-
getDefaultQueryTimeout
public long getDefaultQueryTimeout()
-
getMaxScatterGatherBytes
public long getMaxScatterGatherBytes()
-
getMaxSubqueryRows
public int getMaxSubqueryRows()
-
getMaxSubqueryBytes
public String getMaxSubqueryBytes()
-
isuseNestedForUnknownTypeInSubquery
public boolean isuseNestedForUnknownTypeInSubquery()
-
getMaxQueryTimeout
public long getMaxQueryTimeout()
-
getMaxRequestHeaderSize
public int getMaxRequestHeaderSize()
-
getGracefulShutdownTimeout
public org.joda.time.Period getGracefulShutdownTimeout()
-
getUnannouncePropagationDelay
public org.joda.time.Period getUnannouncePropagationDelay()
-
getInflateBufferSize
public int getInflateBufferSize()
-
getCompressionLevel
public int getCompressionLevel()
-
isEnableForwardedRequestCustomizer
public boolean isEnableForwardedRequestCustomizer()
-
isShowDetailedJettyErrors
public boolean isShowDetailedJettyErrors()
-
getErrorResponseTransformStrategy
public org.apache.druid.common.exception.ErrorResponseTransformStrategy getErrorResponseTransformStrategy()
-
getContentSecurityPolicy
public String getContentSecurityPolicy()
-
isEnableHSTS
public boolean isEnableHSTS()
-
isEnableQueryRequestsQueuing
public boolean isEnableQueryRequestsQueuing()
-
getDefaultNumThreads
public static int getDefaultNumThreads()
-
-