public WebApp start(WebApp webapp) { WebApp webApp = build(webapp); HttpServer2 httpServer = webApp.httpServer(); try { httpServer.start(); LOG.info("Web app " + name + " started at " + httpServer.getConnectorAddress(0).getPort()); } catch (IOException e) { throw new WebAppException("Error starting http server", e); } return webApp; }
public WebApp start(WebApp webapp) { WebApp webApp = build(webapp); HttpServer2 httpServer = webApp.httpServer(); try { httpServer.start(); LOG.info("Web app " + name + " started at " + httpServer.getConnectorAddress(0).getPort()); } catch (IOException e) { throw new WebAppException("Error starting http server", e); } return webApp; }
ahsClientService, "ws") .with(conf).withAttribute(YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS, conf.get(YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS)).at(bindAddress).build(ahsWebApp); HttpServer2 httpServer = webApp.httpServer();
ahsClientService, "ws") .with(conf).withAttribute(YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS, conf.get(YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS)).at(bindAddress).build(ahsWebApp); HttpServer2 httpServer = webApp.httpServer();
.withCSRFProtection(YarnConfiguration.TIMELINE_CSRF_PREFIX) .withXFSProtection(YarnConfiguration.TIMELINE_XFS_PREFIX) .at(bindAddress).build(ahsWebApp); HttpServer2 httpServer = webApp.httpServer();
public WebApp start(WebApp webapp, WebAppContext ui2Context) { WebApp webApp = build(webapp); HttpServer2 httpServer = webApp.httpServer(); if (ui2Context != null) { addFiltersForNewContext(ui2Context); httpServer.addHandlerAtFront(ui2Context); } try { httpServer.start(); LOG.info("Web app " + name + " started at " + httpServer.getConnectorAddress(0).getPort()); } catch (IOException e) { throw new WebAppException("Error starting http server", e); } return webApp; }