public class InfoServer extends HttpServer
HttpServer.DummyServletFilter, HttpServer.QuotingInputFilter, HttpServer.StackServletCONF_CONTEXT_ATTRIBUTE, defaultContexts, filterNames, findPort, listener, LOG, webAppContext, webServer| Constructor and Description |
|---|
InfoServer(String name,
String bindAddress,
int port,
boolean findPort,
org.apache.hadoop.conf.Configuration c)
Create a status server on the given port.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getWebAppsPath()
Get the pathname to the
path files. |
protected String |
getWebAppsPath(String appName)
Get the pathname to the webapps files.
|
addContext, addContext, addDefaultApps, addDefaultServlets, addFilter, addFilterPathMapping, addGlobalFilter, addInternalServlet, addInternalServlet, addJerseyResourcePackage, addServlet, createBaseListener, createDefaultChannelConnector, defineFilter, getAttribute, getPort, join, setAttribute, setAttribute, setThreads, start, stoppublic InfoServer(String name, String bindAddress, int port, boolean findPort, org.apache.hadoop.conf.Configuration c) throws IOException
name.name - The name of the serverbindAddress - address to bind toport - The port to use on the serverfindPort - whether the server should start at the given port and
increment by 1 until it finds a free port.IOException - eprotected String getWebAppsPath(String appName) throws FileNotFoundException
appName - eg "master" or "server"FileNotFoundException - if 'webapps' directory cannot be found on CLASSPATH.protected String getWebAppsPath() throws IOException
path files.getWebAppsPath in class HttpServerIOException - if 'webapps' directory cannot be found on CLASSPATH.Copyright © 2020. All rights reserved.