|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.config.annotation.SpringYarnConfigurerAdapter
public class SpringYarnConfigurerAdapter
Provides a convenient base class for creating a SpringYarnConfigurer
instance. The implementation allows customization by overriding methods.
EnableYarn
Constructor Summary | |
---|---|
SpringYarnConfigurerAdapter()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringYarnConfigurerAdapter()
Method Detail |
---|
@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 builder
java.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 builder
java.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
builder
java.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
builder
java.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
builder
java.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
builder
java.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
builder
java.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
builder
java.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>
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |