|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.lib.server.Server
org.apache.hadoop.lib.servlet.ServerWebApp
org.apache.hadoop.fs.http.server.HttpFSServerWebApp
@InterfaceAudience.Private public class HttpFSServerWebApp
Bootstrap class that manages the initialization and destruction of the
HttpFSServer server, it is a javax.servlet.ServletContextListener
implementation that is wired in HttpFSServer's WAR
WEB-INF/web.xml.
get().
All the configuration is loaded from configuration properties prefixed
with httpfs..
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hadoop.lib.server.Server |
|---|
Server.Status |
| Field Summary | |
|---|---|
static String |
CONF_ADMIN_GROUP
Configuration property that defines HttpFSServer admin group. |
static String |
NAME
Server name and prefix for all configuration properties. |
| Fields inherited from class org.apache.hadoop.lib.servlet.ServerWebApp |
|---|
SSL_ENABLED |
| Fields inherited from class org.apache.hadoop.lib.server.Server |
|---|
CONF_SERVICES, CONF_SERVICES_EXT, CONF_STARTUP_STATUS, DEFAULT_LOG4J_PROPERTIES |
| Constructor Summary | |
|---|---|
HttpFSServerWebApp()
Default constructor. |
|
HttpFSServerWebApp(String homeDir,
org.apache.hadoop.conf.Configuration config)
Constructor used for testing purposes. |
|
HttpFSServerWebApp(String homeDir,
String configDir,
String logDir,
String tempDir,
org.apache.hadoop.conf.Configuration config)
Constructor used for testing purposes. |
|
| Method Summary | |
|---|---|
void |
destroy()
Shutdowns all running services. |
static HttpFSServerWebApp |
get()
Returns HttpFSServer server singleton, configuration and services are accessible through it. |
String |
getAdminGroup()
Returns HttpFSServer admin group. |
void |
init()
Initializes the HttpFSServer server, loads configuration and required services. |
| Methods inherited from class org.apache.hadoop.lib.servlet.ServerWebApp |
|---|
contextDestroyed, contextInitialized, getAuthority, isSslEnabled, resolveAuthority, setAuthority, setHomeDirForCurrentThread |
| Methods inherited from class org.apache.hadoop.lib.server.Server |
|---|
checkServiceDependencies, destroyServices, ensureOperational, get, getConfig, getConfigDir, getHomeDir, getLogDir, getName, getPrefix, getPrefixedName, getStatus, getTempDir, initConfig, initLog, initServices, loadServices, setService, setStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
public static final String CONF_ADMIN_GROUP
| Constructor Detail |
|---|
public HttpFSServerWebApp()
throws IOException
IOException - thrown if the home/conf/log/temp directory paths
could not be resolved.
public HttpFSServerWebApp(String homeDir,
String configDir,
String logDir,
String tempDir,
org.apache.hadoop.conf.Configuration config)
public HttpFSServerWebApp(String homeDir,
org.apache.hadoop.conf.Configuration config)
| Method Detail |
|---|
public void init()
throws ServerException
init in class ServerServerException - thrown if HttpFSServer server could not be
initialized.public void destroy()
destroy in class Serverpublic static HttpFSServerWebApp get()
public String getAdminGroup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||