Spring for Apache Hadoop

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

java.lang.Object
  extended by org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter<YarnAppmaster,YarnAppmasterConfigurer,YarnAppmasterBuilder>
      extended by org.springframework.yarn.config.annotation.configurers.DefaultMasterContainerRunnerConfigurer
All Implemented Interfaces:
AnnotationConfigurer<YarnAppmaster,YarnAppmasterBuilder>, AnnotationConfigurerBuilder<YarnAppmasterConfigurer>, MasterContainerRunnerConfigurer

public class DefaultMasterContainerRunnerConfigurer
extends AnnotationConfigurerAdapter<YarnAppmaster,YarnAppmasterConfigurer,YarnAppmasterBuilder>
implements MasterContainerRunnerConfigurer

Author:
Janne Valkealahti

Constructor Summary
DefaultMasterContainerRunnerConfigurer()
           
 
Method Summary
 MasterContainerRunnerConfigurer argument(java.lang.String key, java.lang.String value)
           
 MasterContainerRunnerConfigurer arguments(java.util.Properties arguments)
           
 MasterContainerRunnerConfigurer beanName(java.lang.String beanName)
           
 void configure(YarnAppmasterBuilder builder)
          Configure the AnnotationBuilder by setting the necessary properties on the AnnotationBuilder.
 MasterContainerRunnerConfigurer contextClass(java.lang.Class<?> contextClass)
           
 MasterContainerRunnerConfigurer contextFile(java.lang.String contextFile)
           
 void init(YarnAppmasterBuilder builder)
          Initialise the AnnotationBuilder.
 MasterContainerRunnerConfigurer runnerClass(java.lang.Class<? extends AbstractCommandLineRunner<?>> runnerClazz)
           
 MasterContainerRunnerConfigurer stderr(java.lang.String stderr)
           
 MasterContainerRunnerConfigurer stdout(java.lang.String stdout)
           
 
Methods inherited from class org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter
addObjectPostProcessor, and, getBuilder, 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

DefaultMasterContainerRunnerConfigurer

public DefaultMasterContainerRunnerConfigurer()
Method Detail

configure

public void configure(YarnAppmasterBuilder 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<YarnAppmaster,YarnAppmasterBuilder>
Overrides:
configure in class AnnotationConfigurerAdapter<YarnAppmaster,YarnAppmasterConfigurer,YarnAppmasterBuilder>
Parameters:
builder - the builder
Throws:
java.lang.Exception - if error occurred

init

public void init(YarnAppmasterBuilder builder)
          throws java.lang.Exception
Description copied from interface: AnnotationConfigurer
Initialise the AnnotationBuilder. Here only shared state should be created and modified, but not properties on the AnnotationBuilder used for building the object. This ensures that the AnnotationConfigurer.configure(AnnotationBuilder) method uses the correct shared objects when building.

Specified by:
init in interface AnnotationConfigurer<YarnAppmaster,YarnAppmasterBuilder>
Overrides:
init in class AnnotationConfigurerAdapter<YarnAppmaster,YarnAppmasterConfigurer,YarnAppmasterBuilder>
Parameters:
builder - the builder
Throws:
java.lang.Exception - if error occurred

contextClass

public MasterContainerRunnerConfigurer contextClass(java.lang.Class<?> contextClass)
Specified by:
contextClass in interface MasterContainerRunnerConfigurer

contextFile

public MasterContainerRunnerConfigurer contextFile(java.lang.String contextFile)
Specified by:
contextFile in interface MasterContainerRunnerConfigurer

stdout

public MasterContainerRunnerConfigurer stdout(java.lang.String stdout)
Specified by:
stdout in interface MasterContainerRunnerConfigurer

stderr

public MasterContainerRunnerConfigurer stderr(java.lang.String stderr)
Specified by:
stderr in interface MasterContainerRunnerConfigurer

beanName

public MasterContainerRunnerConfigurer beanName(java.lang.String beanName)
Specified by:
beanName in interface MasterContainerRunnerConfigurer

runnerClass

public MasterContainerRunnerConfigurer runnerClass(java.lang.Class<? extends AbstractCommandLineRunner<?>> runnerClazz)
Specified by:
runnerClass in interface MasterContainerRunnerConfigurer

arguments

public MasterContainerRunnerConfigurer arguments(java.util.Properties arguments)
Specified by:
arguments in interface MasterContainerRunnerConfigurer

argument

public MasterContainerRunnerConfigurer argument(java.lang.String key,
                                                java.lang.String value)
Specified by:
argument in interface MasterContainerRunnerConfigurer

Spring for Apache Hadoop