public static class ConfigurationFactory.Preferences extends Object
ConfigurationFactory
.Constructor and Description |
---|
Preferences() |
Modifier and Type | Method and Description |
---|---|
URL |
getConfigurationPath()
Returns the Hadoop configuration path.
|
static ConfigurationFactory.Preferences |
getDefault()
Returns a
ConfigurationFactory.Preferences with default values. |
Map<String,String> |
getEnvironmentVariables()
Returns the current environment variables.
|
File |
getExplicitCommandPath()
Returns the explicitly defined Hadoop command path.
|
File |
getExplicitConfigurationPath()
Returns the explicitly defined Hadoop configuration path.
|
File |
getHadoopCommand()
Returns the Hadoop command path.
|
String |
getLocalFileSystemClassName()
Returns the implementation class name of
LocalFileSystem . |
void |
setExplicitCommandPath(File path)
Sets the explicit Hadoop command path.
|
void |
setExplicitConfigurationPath(File path)
Sets the explicit Hadoop configuration path.
|
void |
setLocalFileSystemClassName(String className)
Sets the implementation class name of
LocalFileSystem . |
public void setLocalFileSystemClassName(String className)
LocalFileSystem
.className
- the class namepublic void setExplicitConfigurationPath(File path)
path
- the Hadoop configuration path, or null
if it should be inferredpublic void setExplicitCommandPath(File path)
path
- the Hadoop command path, or null
if it should be inferredpublic String getLocalFileSystemClassName()
LocalFileSystem
.null
if it is not definedpublic Map<String,String> getEnvironmentVariables()
public File getExplicitConfigurationPath()
null
if it is not definedpublic File getExplicitCommandPath()
null
if it is not definedpublic URL getConfigurationPath()
null
if it is not foundgetExplicitConfigurationPath()
public File getHadoopCommand()
null
if it is not foundpublic static ConfigurationFactory.Preferences getDefault()
ConfigurationFactory.Preferences
with default values.Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.