public class DefaultMasterContainerRunnerConfigurer extends AnnotationConfigurerAdapter<YarnAppmaster,YarnAppmasterConfigurer,YarnAppmasterBuilder> implements MasterContainerRunnerConfigurer
| Constructor and Description |
|---|
DefaultMasterContainerRunnerConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
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) |
addObjectPostProcessor, and, getBuilder, isAssignable, setBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandpublic DefaultMasterContainerRunnerConfigurer()
public void configure(YarnAppmasterBuilder builder) throws java.lang.Exception
AnnotationConfigurerAnnotationBuilder by setting the necessary properties
on the AnnotationBuilder.configure in interface AnnotationConfigurer<YarnAppmaster,YarnAppmasterBuilder>configure in class AnnotationConfigurerAdapter<YarnAppmaster,YarnAppmasterConfigurer,YarnAppmasterBuilder>builder - the builderjava.lang.Exception - if error occurredpublic void init(YarnAppmasterBuilder builder) throws java.lang.Exception
AnnotationConfigurerAnnotationBuilder. 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.init in interface AnnotationConfigurer<YarnAppmaster,YarnAppmasterBuilder>init in class AnnotationConfigurerAdapter<YarnAppmaster,YarnAppmasterConfigurer,YarnAppmasterBuilder>builder - the builderjava.lang.Exception - if error occurredpublic MasterContainerRunnerConfigurer contextClass(java.lang.Class<?> contextClass)
contextClass in interface MasterContainerRunnerConfigurerpublic MasterContainerRunnerConfigurer contextFile(java.lang.String contextFile)
contextFile in interface MasterContainerRunnerConfigurerpublic MasterContainerRunnerConfigurer stdout(java.lang.String stdout)
stdout in interface MasterContainerRunnerConfigurerpublic MasterContainerRunnerConfigurer stderr(java.lang.String stderr)
stderr in interface MasterContainerRunnerConfigurerpublic MasterContainerRunnerConfigurer beanName(java.lang.String beanName)
beanName in interface MasterContainerRunnerConfigurerpublic MasterContainerRunnerConfigurer runnerClass(java.lang.Class<? extends AbstractCommandLineRunner<?>> runnerClazz)
runnerClass in interface MasterContainerRunnerConfigurerpublic MasterContainerRunnerConfigurer arguments(java.util.Properties arguments)
arguments in interface MasterContainerRunnerConfigurerpublic MasterContainerRunnerConfigurer argument(java.lang.String key, java.lang.String value)
argument in interface MasterContainerRunnerConfigurer