Class ServerConfig

java.lang.Object
org.apache.druid.server.initialization.ServerConfig

public class ServerConfig extends Object
  • Field Details

    • DEFAULT_GZIP_INFLATE_BUFFER_SIZE

      public static final int DEFAULT_GZIP_INFLATE_BUFFER_SIZE
      See Also:
  • Constructor Details

    • 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 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 Details

    • 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 ErrorResponseTransformStrategy getErrorResponseTransformStrategy()
    • getAllowedHttpMethods

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

      public String getContentSecurityPolicy()
    • isEnableHSTS

      public boolean isEnableHSTS()
    • isEnableQueryRequestsQueuing

      public boolean isEnableQueryRequestsQueuing()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • getDefaultNumThreads

      public static int getDefaultNumThreads()