@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_GROUPConfiguration property that defines HttpFSServer admin group. | 
| static String | NAMEServer name and prefix for all configuration properties. | 
SSL_ENABLEDCONF_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. | 
| 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 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 ServerServerException - thrown if HttpFSServer server could not be
 initialized.public static HttpFSServerWebApp get()
public static HttpFSServerMetrics getMetrics()
public String getAdminGroup()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.