org.springframework.yarn.config.annotation.configurers
Class DefaultEnvironmentClasspathConfigurer
java.lang.Object
org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter<java.util.Map<java.lang.String,java.lang.String>,YarnEnvironmentConfigurer,YarnEnvironmentBuilder>
org.springframework.yarn.config.annotation.configurers.DefaultEnvironmentClasspathConfigurer
- All Implemented Interfaces:
- AnnotationConfigurer<java.util.Map<java.lang.String,java.lang.String>,YarnEnvironmentBuilder>, AnnotationConfigurerBuilder<YarnEnvironmentConfigurer>, EnvironmentClasspathConfigurer
public class DefaultEnvironmentClasspathConfigurer
- extends AnnotationConfigurerAdapter<java.util.Map<java.lang.String,java.lang.String>,YarnEnvironmentConfigurer,YarnEnvironmentBuilder>
- implements EnvironmentClasspathConfigurer
AnnotationConfigurer
which knows how to handle configuring a classpath.
- Author:
- Janne Valkealahti
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultEnvironmentClasspathConfigurer
public DefaultEnvironmentClasspathConfigurer()
configure
public void configure(YarnEnvironmentBuilder builder)
throws java.lang.Exception
- Description copied from interface:
AnnotationConfigurer
- Configure the
AnnotationBuilder
by setting the necessary properties
on the AnnotationBuilder
.
- Specified by:
configure
in interface AnnotationConfigurer<java.util.Map<java.lang.String,java.lang.String>,YarnEnvironmentBuilder>
- Overrides:
configure
in class AnnotationConfigurerAdapter<java.util.Map<java.lang.String,java.lang.String>,YarnEnvironmentConfigurer,YarnEnvironmentBuilder>
- Parameters:
builder
- the builder
- Throws:
java.lang.Exception
- if error occurred
entry
public EnvironmentClasspathConfigurer entry(java.lang.String entry)
- Specified by:
entry
in interface EnvironmentClasspathConfigurer
entries
public EnvironmentClasspathConfigurer entries(java.lang.String... entries)
- Specified by:
entries
in interface EnvironmentClasspathConfigurer
entries
public EnvironmentClasspathConfigurer entries(java.util.List<java.lang.String> entries)
- Specified by:
entries
in interface EnvironmentClasspathConfigurer
defaultYarnAppClasspath
public EnvironmentClasspathConfigurer defaultYarnAppClasspath(boolean defaultClasspath)
- Specified by:
defaultYarnAppClasspath
in interface EnvironmentClasspathConfigurer
includeBaseDirectory
public EnvironmentClasspathConfigurer includeBaseDirectory(boolean includeBaseDirectory)
- Specified by:
includeBaseDirectory
in interface EnvironmentClasspathConfigurer