Search in sources :

Example 1 with ProxyWebServer

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();
}
Also used : ProxyWebServer(alluxio.web.ProxyWebServer)

Example 2 with ProxyWebServer

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();
}
Also used : ProxyWebServer(alluxio.web.ProxyWebServer)

Aggregations

ProxyWebServer (alluxio.web.ProxyWebServer)2