use of alluxio.web.ProxyWebServer in project alluxio by Alluxio.
the class DefaultAlluxioProxy method start.
@Override
public void start() throws Exception {
mWebServer = new ProxyWebServer(ServiceType.PROXY_WEB.getServiceName(), NetworkAddressUtils.getBindAddress(ServiceType.PROXY_WEB), this);
// reset proxy web port
Configuration.set(PropertyKey.PROXY_WEB_PORT, Integer.toString(mWebServer.getLocalPort()));
// start web server
mWebServer.start();
}
use of alluxio.web.ProxyWebServer in project alluxio by Alluxio.
the class AlluxioProxyProcess method start.
@Override
public void start() throws Exception {
mWebServer = new ProxyWebServer(ServiceType.PROXY_WEB.getServiceName(), NetworkAddressUtils.getBindAddress(ServiceType.PROXY_WEB, ServerConfiguration.global()), this);
// reset proxy web port
ServerConfiguration.set(PropertyKey.PROXY_WEB_PORT, Integer.toString(mWebServer.getLocalPort()));
mWebServer.start();
mLatch.await();
}
Aggregations