Package com.github.ambry.config
Class RestServerConfig
- java.lang.Object
-
- com.github.ambry.config.RestServerConfig
-
public class RestServerConfig extends java.lang.Object
Configuration parameters required by RestServer and Rest infrastructure
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_PREFIX
static java.lang.String
ENABLE_ADDED_CHANNEL_HANDLERS
java.lang.String
restServerAccountServiceFactory
The AccountServiceFactory that needs to be used by FrontendRestRequestService to get account-related information.boolean
restServerEnableAddedChannelHandlers
Set true to enable added channel handlers in RestServer.java.lang.String
restServerHealthCheckUri
Health check URI for load balancers (VIPs)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.java.lang.String
restServerPublicAccessLogRequestHeaders
Request Headers that needs to be logged as part of public access log entriesjava.lang.String
restServerPublicAccessLogResponseHeaders
Response Headers that needs to be logged as part of public access log entriesint
restServerRequestHandlerScalingUnitCount
The number of scaling units in RestRequestHandler that will handle requests.java.lang.String
restServerRequestResponseHandlerFactory
The RequestResponseHandlerFactory that needs to be used by the RestServer or AmbryServer HTTP2 for bootstrapping the RestRequestHandler and RestResponseHandlerint
restServerResponseHandlerScalingUnitCount
The number of scaling units in RestResponseHandler handle responses.java.lang.String
restServerRestRequestServiceFactory
The RestRequestServiceFactory that needs to be used by the RestServer for bootstrapping the RestRequestService.java.lang.String
restServerRouterFactory
The RouterFactory that needs to be used by the RestServer for bootstrapping the Router.
-
Constructor Summary
Constructors Constructor Description RestServerConfig(VerifiableProperties verifiableProperties)
-
-
-
Field Detail
-
CONFIG_PREFIX
public static final java.lang.String CONFIG_PREFIX
- See Also:
- Constant Field Values
-
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)
-
-
Constructor Detail
-
RestServerConfig
public RestServerConfig(VerifiableProperties verifiableProperties)
-
-