java.util.EventListener, javax.servlet.ServletContextListener@Private public class HttpFSServerWebApp extends ServerWebApp
javax.servlet.ServletContextListener
implementation that is wired in HttpFSServer's WAR
WEB-INF/web.xml.
It provides acces to the server context via the singleton get().
All the configuration is loaded from configuration properties prefixed
with httpfs..
Server.Status| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CONF_ADMIN_GROUP |
Configuration property that defines HttpFSServer admin group.
|
static java.lang.String |
NAME |
Server name and prefix for all configuration properties.
|
SSL_ENABLEDCONF_SERVICES, CONF_SERVICES_EXT, CONF_STARTUP_STATUS, DEFAULT_LOG4J_PROPERTIES| Constructor | Description |
|---|---|
HttpFSServerWebApp() |
Default constructor.
|
HttpFSServerWebApp(java.lang.String homeDir,
java.lang.String configDir,
java.lang.String logDir,
java.lang.String tempDir,
org.apache.hadoop.conf.Configuration config) |
Constructor used for testing purposes.
|
HttpFSServerWebApp(java.lang.String homeDir,
org.apache.hadoop.conf.Configuration config) |
Constructor used for testing purposes.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
destroy() |
Shutdowns all running services.
|
static HttpFSServerWebApp |
get() |
Returns HttpFSServer server singleton, configuration and services are
accessible through it.
|
java.lang.String |
getAdminGroup() |
Returns HttpFSServer admin group.
|
static HttpFSServerMetrics |
getMetrics() |
gets the HttpFSServerMetrics instance.
|
void |
init() |
Initializes the HttpFSServer server, loads configuration and required
services.
|
contextDestroyed, contextInitialized, getAuthority, isSslEnabled, resolveAuthority, setAuthority, setHomeDirForCurrentThreadcheckServiceDependencies, destroyServices, ensureOperational, get, getConfig, getConfigDir, getHomeDir, getLogDir, getName, getPrefix, getPrefixedName, getStatus, getTempDir, initConfig, initLog, initServices, loadServices, setService, setStatuspublic static final java.lang.String NAME
public static final java.lang.String CONF_ADMIN_GROUP
public HttpFSServerWebApp()
throws java.io.IOException
java.io.IOException - thrown if the home/conf/log/temp directory paths
could not be resolved.public HttpFSServerWebApp(java.lang.String homeDir,
java.lang.String configDir,
java.lang.String logDir,
java.lang.String tempDir,
org.apache.hadoop.conf.Configuration config)
public HttpFSServerWebApp(java.lang.String homeDir,
org.apache.hadoop.conf.Configuration config)
public void init()
throws ServerException
init in class ServerServerException - thrown if HttpFSServer server could not be
initialized.public static HttpFSServerWebApp get()
public static HttpFSServerMetrics getMetrics()
public java.lang.String getAdminGroup()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.