|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.configuration.EnvironmentFactoryBean
public class EnvironmentFactoryBean
FactoryBean for creating a Map of environment variables.
| Constructor Summary | |
|---|---|
EnvironmentFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected Map<String,String> |
createEnvironment()
Creates the Map to be returned from this factory bean. |
Map<String,String> |
getObject()
|
Class<?> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setClasspath(String classpath)
Sets incoming classpath. |
void |
setConfiguration(Configuration configuration)
Sets the yarn configuration. |
void |
setDefaultYarnAppClasspath(String defaultYarnAppClasspath)
Sets the default yarn app classpath. |
void |
setDelimiter(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 |
setIncludeLocalSystemEnv(boolean includeLocalSystemEnv)
If set to true properties from a System.getenv() will
be included to environment settings. |
void |
setProperties(Properties properties)
Sets the configuration properties. |
void |
setUseDefaultYarnClasspath(boolean useDefaultYarnClasspath)
If set to true a default 'yarn' entries will be added to a 'CLASSPATH' environment variable. |
| 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 Map<String,String> getObject()
throws Exception
getObject in interface FactoryBean<Map<String,String>>Exceptionpublic Class<?> getObjectType()
getObjectType in interface FactoryBean<Map<String,String>>public boolean isSingleton()
isSingleton in interface FactoryBean<Map<String,String>>
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void setIncludeLocalSystemEnv(boolean includeLocalSystemEnv)
System.getenv() will
be included to environment settings. Default value is true.
includeLocalSystemEnv - flag to setpublic void setConfiguration(Configuration configuration)
configuration - the new yarn configurationprotected Map<String,String> createEnvironment()
Map to be returned from this factory bean.
public void setProperties(Properties properties)
properties - The properties to set.public void setClasspath(String classpath)
classpath - the incoming classpath to setpublic void setDefaultYarnAppClasspath(String defaultYarnAppClasspath)
defaultYarnAppClasspath - the new default yarn app classpathpublic void setUseDefaultYarnClasspath(boolean useDefaultYarnClasspath)
useDefaultYarnClasspath - 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(String delimiter)
delimiter - delimiter to use in classpath
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||