@InterfaceAudience.Private public class InfoServer extends org.apache.hadoop.http.HttpServer
| 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, addSslListener, addSslListener, addSslListener, createBaseListener, createDefaultChannelConnector, defineFilter, getAttribute, getPort, hasAdministratorAccess, isInstrumentationAccessAllowed, 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 "secondary" or "datanode"FileNotFoundException - if 'webapps' directory cannot be found on CLASSPATH.protected String getWebAppsPath() throws IOException
path files.getWebAppsPath in class org.apache.hadoop.http.HttpServerIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.