Class ServerConfig


  • public class ServerConfig
    extends Object
    • 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 using JsonConfigProvider binding. 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()
      • getAllowedHttpMethods

        @NotNull
        public @NotNull List<String> getAllowedHttpMethods()
      • getContentSecurityPolicy

        public String getContentSecurityPolicy()
      • isEnableHSTS

        public boolean isEnableHSTS()
      • isEnableQueryRequestsQueuing

        public boolean isEnableQueryRequestsQueuing()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDefaultNumThreads

        public static int getDefaultNumThreads()