|
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.data.hadoop.config.common.annotation.AbstractAnnotationBuilder<O> org.springframework.data.hadoop.config.common.annotation.AbstractConfiguredAnnotationBuilder<YarnContainer,YarnContainerConfigurer,YarnContainerBuilder> org.springframework.yarn.config.annotation.builders.YarnContainerBuilder
public class YarnContainerBuilder
Constructor Summary | |
---|---|
YarnContainerBuilder()
|
Method Summary | |
---|---|
void |
configuration(org.apache.hadoop.conf.Configuration configuration)
|
YarnContainerConfigurer |
containerClass(java.lang.Class<? extends YarnContainer> clazz)
Specify a YarnContainer class. |
YarnContainerConfigurer |
containerClass(java.lang.String clazz)
Specify a YarnContainer as a fully qualified class name. |
YarnContainerConfigurer |
containerRef(YarnContainer ref)
Specify a YarnContainer reference. |
protected YarnContainer |
performBuild()
Subclasses must implement this method to build the object that is being returned. |
Methods inherited from class org.springframework.data.hadoop.config.common.annotation.AbstractConfiguredAnnotationBuilder |
---|
apply, apply, beforeConfigureMains, beforeConfigurePosts, beforeInit, doBuild, getConfigurer, getConfigurers, getOrApply, getOrBuild, getSharedObject, getSharedObjects, objectPostProcessor, postProcess, removeConfigurer, removeConfigurers, setSharedObject |
Methods inherited from class org.springframework.data.hadoop.config.common.annotation.AbstractAnnotationBuilder |
---|
build, getObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YarnContainerBuilder()
Method Detail |
---|
protected YarnContainer performBuild() throws java.lang.Exception
AbstractConfiguredAnnotationBuilder
performBuild
in class AbstractConfiguredAnnotationBuilder<YarnContainer,YarnContainerConfigurer,YarnContainerBuilder>
java.lang.Exception
public YarnContainerConfigurer containerClass(java.lang.Class<? extends YarnContainer> clazz)
YarnContainerConfigurer
YarnContainer
class.
JavaConfig:
public void configure(YarnContainerConfigure container) throws Exception { container .containerClass(MyYarnContainer.class); }
XML:
<yarn:container container-class="com.example.MyYarnContainer"/>
containerClass
in interface YarnContainerConfigurer
clazz
- The Yarn container class
YarnContainerConfigurer
for chainingpublic YarnContainerConfigurer containerClass(java.lang.String clazz)
YarnContainerConfigurer
YarnContainer
as a fully qualified class name.
JavaConfig:
public void configure(YarnContainerConfigure container) throws Exception { container .containerClass("foo.example.MyYarnContainer"); }
XML:
No equivalent
containerClass
in interface YarnContainerConfigurer
clazz
- The Yarn container class
YarnContainerConfigurer
for chainingpublic void configuration(org.apache.hadoop.conf.Configuration configuration)
public YarnContainerConfigurer containerRef(YarnContainer ref)
YarnContainerConfigurer
YarnContainer
reference.
JavaConfig:
@Autowired private YarnContainer yarnContainer; public void configure(YarnContainerConfigure container) throws Exception { container .containerRef(MyYarnContainer.class); }
XML:
<bean id="myYarnContainer" class="com.example.MyYarnContainer"/> <yarn:container container-ref="myYarnContainer"/>
containerRef
in interface YarnContainerConfigurer
ref
- The Yarn container reference
YarnContainerConfigurer
for chaining
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |