@InterfaceAudience.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 and Description |
---|---|
static String |
CONF_ADMIN_GROUP
Configuration property that defines HttpFSServer admin group.
|
static String |
NAME
Server name and prefix for all configuration properties.
|
SSL_ENABLED
CONF_SERVICES, CONF_SERVICES_EXT, CONF_STARTUP_STATUS, DEFAULT_LOG4J_PROPERTIES
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
contextDestroyed, contextInitialized, getAuthority, isSslEnabled, resolveAuthority, setAuthority, setHomeDirForCurrentThread
checkServiceDependencies, destroyServices, ensureOperational, get, getConfig, getConfigDir, getHomeDir, getLogDir, getName, getPrefix, getPrefixedName, getStatus, getTempDir, initConfig, initLog, initServices, loadServices, setService, setStatus
public static final String NAME
public static final String CONF_ADMIN_GROUP
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)
public void init() throws ServerException
init
in class Server
ServerException
- thrown if HttpFSServer server could not be
initialized.public static HttpFSServerWebApp get()
public String getAdminGroup()
Copyright © 2022 Apache Software Foundation. All rights reserved.