|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.configuration.ConfigurationFactoryBean
public class ConfigurationFactoryBean
FactoryBean for creating Configuration instances.
| Constructor Summary | |
|---|---|
ConfigurationFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected Configuration |
createConfiguration(Configuration existing)
Creates a configuration instance potentially using the existing one (passed as an argument - which can be null). |
Configuration |
getObject()
|
Class<?> |
getObjectType()
|
boolean |
isSingleton()
|
protected void |
postProcessConfiguration(Configuration configuration)
|
void |
setBeanClassLoader(ClassLoader classLoader)
|
void |
setConfiguration(Configuration configuration)
Sets the parent configuration. |
void |
setFileSystemUri(String fsUri)
Sets the File System ('fs.default.name') and ('fs.defaultFS') URI for HadoopV1 and HadoopV2 respectively. |
void |
setInitialize(boolean initialize)
Indicates whether the configuration object should be initialized (true) or not. |
void |
setJobTrackerUri(String jtUri)
Sets the Job Tracker ('mapred.jobtracker') URI for HadoopV1. |
void |
setLoadDefaults(boolean loadDefaults)
Indicates whether to load the defaults (the default) or not for this configuration. |
void |
setProperties(Properties properties)
Sets the configuration properties. |
void |
setRegisterUrlHandler(boolean register)
Indicates whether the configuration should register an URL handler (for allowing urls to understand HDFS prefixes, such as hdfs) or not. |
void |
setResources(Set<Resource> resources)
Sets the configuration resources. |
void |
setRmManagerUri(String rmUri)
Sets the Yarn resource manager ('yarn.resourcemanager.address') URI for HadoopV2. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationFactoryBean()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic Configuration getObject()
getObject in interface FactoryBean<Configuration>public Class<?> getObjectType()
getObjectType in interface FactoryBean<Configuration>public boolean isSingleton()
isSingleton in interface FactoryBean<Configuration>public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface BeanClassLoaderAwareprotected Configuration createConfiguration(Configuration existing)
existing -
protected void postProcessConfiguration(Configuration configuration)
public void setConfiguration(Configuration configuration)
configuration - The configuration to set.public void setLoadDefaults(boolean loadDefaults)
loadDefaults - The loadDefaults to set.public void setResources(Set<Resource> resources)
resources - The resources to set.public void setProperties(Properties properties)
properties - The properties to set.public void setInitialize(boolean initialize)
initialize - whether to initialize or not.public void setRegisterUrlHandler(boolean register)
register - whether to register an URL handler or notpublic void setFileSystemUri(String fsUri)
fsUri - the default file system uripublic void setJobTrackerUri(String jtUri)
jtUri - the job tracker uripublic void setRmManagerUri(String rmUri)
rmUri - the resource manager uri
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||