public class ConfigurationFactory extends ConfigurationProvider
Configurations with system defaults.| Modifier and Type | Class and Description | 
|---|---|
| static class  | ConfigurationFactory.PreferencesPreferences for  ConfigurationFactory. | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | KEY_EXPLICIT_HADOOP_COMMANDDeprecated.  | 
| static String | KEY_EXPLICIT_HADOOP_CONFDeprecated.  | 
| static String | KEY_LOCAL_FILE_SYSTEMThe system property key of  LocalFileSystemimplementation class name. | 
| Constructor and Description | 
|---|
| ConfigurationFactory(ConfigurationFactory.Preferences preferences)Creates a new instance. | 
| ConfigurationFactory(URL defaultConfigPath)Creates a new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | configure(org.apache.hadoop.conf.Configuration configuration)Configures before  ConfigurationProvider.newInstance()returns the configuration object. | 
| static ConfigurationFactory | getDefault()Returns a default factory which refers the System Hadoop configuration path. | 
| File | getHadoopCommand()Returns the Hadoop command path for this configuration. | 
findHadoopCommand, findHadoopCommand, getConfigurationPath, newInstancepublic static final String KEY_LOCAL_FILE_SYSTEM
LocalFileSystem implementation class name.@Deprecated public static final String KEY_EXPLICIT_HADOOP_CONF
@Deprecated public static final String KEY_EXPLICIT_HADOOP_COMMAND
public ConfigurationFactory(URL defaultConfigPath)
defaultConfigPath - the default configuration pathgetDefault()public ConfigurationFactory(ConfigurationFactory.Preferences preferences)
preferences - the preferences for this instancegetDefault()public static ConfigurationFactory getDefault()
If Hadoop installation is not found in your system, this returns a factory which use the current context classloader.
public File getHadoopCommand()
null if it is not foundprotected void configure(org.apache.hadoop.conf.Configuration configuration)
ConfigurationProviderConfigurationProvider.newInstance() returns the configuration object.configure in class ConfigurationProviderconfiguration - the configurationCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.