public class SpringYarnConfigurerAdapter extends java.lang.Object implements SpringYarnConfigurer
SpringYarnConfigurer
instance. The implementation allows customization by overriding methods.EnableYarn
Constructor and Description |
---|
SpringYarnConfigurerAdapter() |
@Autowired(required=false) public void setObjectPostProcessor(ObjectPostProcessor<java.lang.Object> objectPostProcessor)
public final void init(SpringYarnConfigBuilder 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<SpringYarnConfigs,SpringYarnConfigBuilder>
builder
- the builderjava.lang.Exception
- if error occurredpublic void configure(SpringYarnConfigBuilder builder) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
by setting the necessary properties
on the AnnotationBuilder
.configure
in interface AnnotationConfigurer<SpringYarnConfigs,SpringYarnConfigBuilder>
builder
- the builderjava.lang.Exception
- if error occurredpublic void configure(YarnConfigConfigurer config) throws java.lang.Exception
SpringYarnConfigurer
YarnConfiguration
via YarnConfigBuilder
builder.configure
in interface SpringYarnConfigurer
config
- the YarnConfiguration
builderjava.lang.Exception
- if error occurredpublic void configure(YarnResourceLocalizerConfigurer localizer) throws java.lang.Exception
SpringYarnConfigurer
ResourceLocalizer
via YarnResourceLocalizerBuilder
builder.configure
in interface SpringYarnConfigurer
localizer
- the ResourceLocalizer
builderjava.lang.Exception
- if error occurredpublic void configure(YarnEnvironmentConfigurer environment) throws java.lang.Exception
SpringYarnConfigurer
Map
of environment via YarnEnvironmentBuilder
builder.configure
in interface SpringYarnConfigurer
environment
- the YarnEnvironmentBuilder
builderjava.lang.Exception
- if error occurredpublic void configure(YarnClientConfigurer client) throws java.lang.Exception
SpringYarnConfigurer
YarnClient
via YarnClientBuilder
builder.configure
in interface SpringYarnConfigurer
client
- the YarnClientBuilder
builderjava.lang.Exception
- if error occurredpublic void configure(YarnAppmasterConfigurer master) throws java.lang.Exception
SpringYarnConfigurer
YarnAppmaster
via YarnAppmasterBuilder
builder.configure
in interface SpringYarnConfigurer
master
- the YarnAppmasterBuilder
builderjava.lang.Exception
- if error occurredpublic void configure(YarnContainerConfigurer container) throws java.lang.Exception
SpringYarnConfigurer
YarnContainer
via YarnContainerBuilder
builder.configure
in interface SpringYarnConfigurer
container
- the YarnContainerBuilder
builderjava.lang.Exception
- if error occurredprotected final YarnConfigBuilder getConfigBuilder() throws java.lang.Exception
java.lang.Exception
- if error occurredprotected final YarnResourceLocalizerBuilder getLocalizerBuilder() throws java.lang.Exception
java.lang.Exception
protected final YarnEnvironmentBuilder getEnvironmentBuilder() throws java.lang.Exception
java.lang.Exception
protected final YarnClientBuilder getClientBuilder() throws java.lang.Exception
java.lang.Exception
protected final YarnAppmasterBuilder getAppmasterBuilder() throws java.lang.Exception
java.lang.Exception
protected final YarnContainerBuilder getContainerBuilder() throws java.lang.Exception
java.lang.Exception
public boolean isAssignable(AnnotationBuilder<SpringYarnConfigs> builder)
isAssignable
in interface AnnotationConfigurer<SpringYarnConfigs,SpringYarnConfigBuilder>