Class RestServerConfig


  • public class RestServerConfig
    extends java.lang.Object
    Configuration parameters required by RestServer and Rest infrastructure
    • Field Detail

      • ENABLE_ADDED_CHANNEL_HANDLERS

        public static final java.lang.String ENABLE_ADDED_CHANNEL_HANDLERS
        See Also:
        Constant Field Values
      • restServerRestRequestServiceFactory

        @Config("rest.server.rest.request.service.factory")
        public final java.lang.String restServerRestRequestServiceFactory
        The RestRequestServiceFactory that needs to be used by the RestServer for bootstrapping the RestRequestService.
      • restServerNioServerFactory

        @Config("rest.server.nio.server.factory")
        @Default("com.github.ambry.rest.FrontendNettyFactory")
        public final java.lang.String restServerNioServerFactory
        The NioServerFactory that needs to be used by the RestServer or AmbryServer for bootstrapping the Frontend NioServer or Storage Node HTTP2 Server.
      • restServerRequestHandlerScalingUnitCount

        @Config("rest.server.request.handler.scaling.unit.count")
        @Default("5")
        public final int restServerRequestHandlerScalingUnitCount
        The number of scaling units in RestRequestHandler that will handle requests.
      • restServerRequestResponseHandlerFactory

        @Config("rest.server.request.response.handler.factory")
        @Default("com.github.ambry.rest.AsyncRequestResponseHandlerFactory")
        public final java.lang.String restServerRequestResponseHandlerFactory
        The RequestResponseHandlerFactory that needs to be used by the RestServer or AmbryServer HTTP2 for bootstrapping the RestRequestHandler and RestResponseHandler
      • restServerResponseHandlerScalingUnitCount

        @Config("rest.server.response.handler.scaling.unit.count")
        @Default("5")
        public final int restServerResponseHandlerScalingUnitCount
        The number of scaling units in RestResponseHandler handle responses.
      • restServerAccountServiceFactory

        @Config("rest.server.account.service.factory")
        @Default("com.github.ambry.account.InMemoryUnknownAccountServiceFactory")
        public final java.lang.String restServerAccountServiceFactory
        The AccountServiceFactory that needs to be used by FrontendRestRequestService to get account-related information.
      • restServerRouterFactory

        @Config("rest.server.router.factory")
        @Default("com.github.ambry.router.NonBlockingRouterFactory")
        public final java.lang.String restServerRouterFactory
        The RouterFactory that needs to be used by the RestServer for bootstrapping the Router.
      • restServerPublicAccessLogRequestHeaders

        @Config("rest.server.public.access.log.request.headers")
        @Default("Host,Referer,User-Agent,Content-Length,x-ambry-content-type,x-ambry-owner-id,x-ambry-ttl,x-ambry-private,x-ambry-service-id,X-Forwarded-For")
        public final java.lang.String restServerPublicAccessLogRequestHeaders
        Request Headers that needs to be logged as part of public access log entries
      • restServerPublicAccessLogResponseHeaders

        @Config("rest.server.public.access.log.response.headers")
        @Default("Location,x-ambry-blob-size")
        public final java.lang.String restServerPublicAccessLogResponseHeaders
        Response Headers that needs to be logged as part of public access log entries
      • restServerHealthCheckUri

        @Config("rest.server.health.check.uri")
        @Default("/healthCheck")
        public final java.lang.String restServerHealthCheckUri
        Health check URI for load balancers (VIPs)
      • restServerEnableAddedChannelHandlers

        @Config("rest.server.enable.added.channel.handlers")
        @Default("false")
        public final boolean restServerEnableAddedChannelHandlers
        Set true to enable added channel handlers in RestServer.