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, setBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and
public DefaultMasterContainerRunnerConfigurer()
public void configure(YarnAppmasterBuilder builder) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
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
AnnotationConfigurer
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.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 MasterContainerRunnerConfigurer
public MasterContainerRunnerConfigurer contextFile(java.lang.String contextFile)
contextFile
in interface MasterContainerRunnerConfigurer
public MasterContainerRunnerConfigurer stdout(java.lang.String stdout)
stdout
in interface MasterContainerRunnerConfigurer
public MasterContainerRunnerConfigurer stderr(java.lang.String stderr)
stderr
in interface MasterContainerRunnerConfigurer
public MasterContainerRunnerConfigurer beanName(java.lang.String beanName)
beanName
in interface MasterContainerRunnerConfigurer
public MasterContainerRunnerConfigurer runnerClass(java.lang.Class<? extends AbstractCommandLineRunner<?>> runnerClazz)
runnerClass
in interface MasterContainerRunnerConfigurer
public MasterContainerRunnerConfigurer arguments(java.util.Properties arguments)
arguments
in interface MasterContainerRunnerConfigurer
public MasterContainerRunnerConfigurer argument(java.lang.String key, java.lang.String value)
argument
in interface MasterContainerRunnerConfigurer