Spring for Apache Hadoop

org.springframework.yarn.config.annotation.configurers
Class DefaultEnvironmentClasspathConfigurer

java.lang.Object
  extended by org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter<java.util.Map<java.lang.String,java.lang.String>,YarnEnvironmentConfigurer,YarnEnvironmentBuilder>
      extended by 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

Constructor Summary
DefaultEnvironmentClasspathConfigurer()
           
 
Method Summary
 void configure(YarnEnvironmentBuilder builder)
          Configure the AnnotationBuilder by setting the necessary properties on the AnnotationBuilder.
 EnvironmentClasspathConfigurer defaultYarnAppClasspath(boolean defaultClasspath)
           
 EnvironmentClasspathConfigurer entries(java.util.List<java.lang.String> entries)
           
 EnvironmentClasspathConfigurer entries(java.lang.String... entries)
           
 EnvironmentClasspathConfigurer entry(java.lang.String entry)
           
 EnvironmentClasspathConfigurer includeBaseDirectory(boolean includeBaseDirectory)
           
 
Methods inherited from class org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerBuilder
and
 

Constructor Detail

DefaultEnvironmentClasspathConfigurer

public DefaultEnvironmentClasspathConfigurer()
Method Detail

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

Spring for Apache Hadoop