|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.configuration.EnvironmentFactoryBean
public class EnvironmentFactoryBean
FactoryBean for creating a Map of environment variables.
Constructor Summary | |
---|---|
EnvironmentFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected java.util.Map<java.lang.String,java.lang.String> |
createEnvironment()
Creates the Map to be returned from this factory bean. |
java.util.Map<java.lang.String,java.lang.String> |
getObject()
|
java.lang.Class<?> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setClasspath(java.lang.String classpath)
Sets incoming classpath. |
void |
setDefaultYarnAppClasspath(boolean defaultYarnAppClasspath)
If set to true a default 'yarn' entries will be added to a 'CLASSPATH' environment variable. |
void |
setDelimiter(java.lang.String delimiter)
Sets the delimiter used in a classpath. |
void |
setIncludeBaseDirectory(boolean includeBaseDirectory)
If set to true a base directory entry will be added to a 'CLASSPATH' environment variable. |
void |
setIncludeSystemEnv(boolean includeSystemEnv)
If set to true properties from a System.getenv() will
be included to environment settings. |
void |
setProperties(java.util.Properties properties)
Sets the configuration properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnvironmentFactoryBean()
Method Detail |
---|
public java.util.Map<java.lang.String,java.lang.String> getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<java.util.Map<java.lang.String,java.lang.String>>
java.lang.Exception
public java.lang.Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<java.util.Map<java.lang.String,java.lang.String>>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<java.util.Map<java.lang.String,java.lang.String>>
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setIncludeSystemEnv(boolean includeSystemEnv)
System.getenv()
will
be included to environment settings. Default value is true.
includeSystemEnv
- flag to setprotected java.util.Map<java.lang.String,java.lang.String> createEnvironment()
Map
to be returned from this factory bean.
public void setProperties(java.util.Properties properties)
properties
- The properties to set.public void setClasspath(java.lang.String classpath)
classpath
- the incoming classpath to setpublic void setDefaultYarnAppClasspath(boolean defaultYarnAppClasspath)
defaultYarnAppClasspath
- Flag telling if default yarn entries
should be added to classpathpublic void setIncludeBaseDirectory(boolean includeBaseDirectory)
includeBaseDirectory
- Flag telling if base directory entry
should be added to classpathpublic void setDelimiter(java.lang.String delimiter)
delimiter
- delimiter to use in classpath
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |