org.springframework.yarn.config.annotation.configurers
Class DefaultMasterContainerRunnerConfigurer
java.lang.Object
org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter<YarnAppmaster,YarnAppmasterConfigurer,YarnAppmasterBuilder>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMasterContainerRunnerConfigurer
public DefaultMasterContainerRunnerConfigurer()
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