@NotThreadSafe public final class ProxyWebServer extends WebServer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALLUXIO_PROXY_AUDIT_LOG_WRITER_KEY |
static java.lang.String |
ALLUXIO_PROXY_SERVLET_RESOURCE_KEY |
static java.lang.String |
FILE_SYSTEM_SERVLET_RESOURCE_KEY |
static java.lang.String |
GLOBAL_RATE_LIMITER_SERVLET_RESOURCE_KEY |
static java.lang.String |
S3_HANDLER_ATTRIBUTE |
static java.lang.String |
SERVER_CONFIGURATION_RESOURCE_KEY |
static java.lang.String |
STREAM_CACHE_SERVLET_RESOURCE_KEY |
mServletContextHandler| Constructor and Description |
|---|
ProxyWebServer(java.lang.String serviceName,
java.net.InetSocketAddress address,
ProxyProcess proxyProcess)
Creates a new instance of
ProxyWebServer. |
| Modifier and Type | Method and Description |
|---|---|
static void |
logAccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.google.common.base.Stopwatch stopWatch,
S3BaseTask.OpType opType)
Log the access of every single http request.
|
void |
stop() |
addHandler, getBindHost, getLocalPort, getServer, getServerConnector, setHandler, startpublic static final java.lang.String ALLUXIO_PROXY_SERVLET_RESOURCE_KEY
public static final java.lang.String FILE_SYSTEM_SERVLET_RESOURCE_KEY
public static final java.lang.String STREAM_CACHE_SERVLET_RESOURCE_KEY
public static final java.lang.String SERVER_CONFIGURATION_RESOURCE_KEY
public static final java.lang.String ALLUXIO_PROXY_AUDIT_LOG_WRITER_KEY
public static final java.lang.String GLOBAL_RATE_LIMITER_SERVLET_RESOURCE_KEY
public static final java.lang.String S3_HANDLER_ATTRIBUTE
public ProxyWebServer(java.lang.String serviceName,
java.net.InetSocketAddress address,
ProxyProcess proxyProcess)
ProxyWebServer.serviceName - the service nameaddress - the service addressproxyProcess - the Alluxio proxy processpublic void stop()
throws java.lang.Exception
public static void logAccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.google.common.base.Stopwatch stopWatch,
S3BaseTask.OpType opType)
request - response - stopWatch - opType - Copyright © 2024. All Rights Reserved.