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

java.lang.Object
  extended by org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter<Map<String,String>,YarnEnvironmentConfigurer,YarnEnvironmentBuilder>
      extended by org.springframework.yarn.config.annotation.configurers.DefaultEnvironmentClasspathConfigurer
All Implemented Interfaces:
org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurer<Map<String,String>,YarnEnvironmentBuilder>, org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerBuilder<YarnEnvironmentConfigurer>, EnvironmentClasspathConfigurer

public class DefaultEnvironmentClasspathConfigurer
extends org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter<Map<String,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)
           
 EnvironmentClasspathConfigurer defaultYarnAppClasspath(boolean defaultClasspath)
           
 EnvironmentClasspathConfigurer entries(List<String> entries)
           
 EnvironmentClasspathConfigurer entries(String... entries)
           
 EnvironmentClasspathConfigurer entry(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 Exception
Specified by:
configure in interface org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurer<Map<String,String>,YarnEnvironmentBuilder>
Overrides:
configure in class org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter<Map<String,String>,YarnEnvironmentConfigurer,YarnEnvironmentBuilder>
Throws:
Exception

entry

public EnvironmentClasspathConfigurer entry(String entry)
Specified by:
entry in interface EnvironmentClasspathConfigurer

entries

public EnvironmentClasspathConfigurer entries(String... entries)
Specified by:
entries in interface EnvironmentClasspathConfigurer

entries

public EnvironmentClasspathConfigurer entries(List<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