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();
}
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();
}
Aggregations