@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, createBaseListener, createDefaultChannelConnector, defineFilter, getAttribute, getListenerAddress, getPort, getWebAppContext, hasAdministratorAccess, initSpnego, isAlive, isInstrumentationAccessAllowed, join, setAttribute, setThreads, start, stop, toString, userHasAdministratorAccesspublic 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
getWebAppsPath in class org.apache.hadoop.http.HttpServerappName - eg "secondary" or "datanode"FileNotFoundException - if 'webapps' directory cannot be found on CLASSPATH.protected String getWebAppsPath() throws IOException
path files.IOExceptionCopyright © 2014 The Apache Software Foundation. All Rights Reserved.