Search in sources :

Example 1 with MasterWebServer

use of alluxio.web.MasterWebServer in project alluxio by Alluxio.

the class DefaultAlluxioMaster method startServingWebServer.

protected void startServingWebServer() {
    mWebServer = new MasterWebServer(ServiceType.MASTER_WEB.getServiceName(), NetworkAddressUtils.getBindAddress(ServiceType.MASTER_WEB), this);
    // reset master web port
    Configuration.set(PropertyKey.MASTER_WEB_PORT, Integer.toString(mWebServer.getLocalPort()));
    // Add the metrics servlet to the web server.
    mWebServer.addHandler(mMetricsServlet.getHandler());
    // start web ui
    mWebServer.start();
}
Also used : MasterWebServer(alluxio.web.MasterWebServer)

Example 2 with MasterWebServer

use of alluxio.web.MasterWebServer in project alluxio by Alluxio.

the class AlluxioMasterProcess method startServingWebServer.

/**
 * Starts serving web ui server, resetting master web port, adding the metrics servlet to the web
 * server and starting web ui.
 */
protected void startServingWebServer() {
    LOG.info("Alluxio master web server version {}. webAddress={}", RuntimeConstants.VERSION, mWebBindAddress);
    stopRejectingWebServer();
    mWebServer = new MasterWebServer(ServiceType.MASTER_WEB.getServiceName(), mWebBindAddress, this);
    // reset master web port
    // start web ui
    mWebServer.start();
}
Also used : MasterWebServer(alluxio.web.MasterWebServer)

Aggregations

MasterWebServer (alluxio.web.MasterWebServer)2