|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.config.common.annotation.AbstractAnnotationBuilder<O>
org.springframework.data.hadoop.config.common.annotation.AbstractConfiguredAnnotationBuilder<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder>
org.springframework.yarn.config.annotation.builders.YarnResourceLocalizerBuilder
public final class YarnResourceLocalizerBuilder
AnnotationBuilder for ResourceLocalizer.
| Constructor Summary | |
|---|---|
YarnResourceLocalizerBuilder()
Instantiates a new yarn resource localizer builder. |
|
| Method Summary | |
|---|---|
void |
configuration(Configuration configuration)
|
YarnResourceLocalizerConfigurer |
defaultLocalResourceType(LocalResourceType type)
|
YarnResourceLocalizerConfigurer |
defaultLocalResourceVisibility(LocalResourceVisibility visibility)
|
protected ResourceLocalizer |
performBuild()
|
void |
setCopyEntries(Collection<LocalResourcesFactoryBean.CopyEntry> copyEntries)
|
void |
setHdfsEntries(Collection<LocalResourcesFactoryBean.TransferEntry> transferEntries)
|
void |
setRawCopyEntries(Collection<LocalResourcesFactoryBean.RawCopyEntry> rawEntries)
|
YarnResourceLocalizerConfigurer |
stagingDirectory(String stagingDirectory)
|
LocalResourcesCopyConfigurer |
withCopy()
Specify configuration options as properties with a DefaultLocalResourcesCopyConfigurer. |
LocalResourcesHdfsConfigurer |
withHdfs()
Specify configuration options as properties with a DefaultLocalResourcesCopyConfigurer. |
| 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 YarnResourceLocalizerBuilder()
| Method Detail |
|---|
protected ResourceLocalizer performBuild()
throws Exception
performBuild in class org.springframework.data.hadoop.config.common.annotation.AbstractConfiguredAnnotationBuilder<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder>Exception
public LocalResourcesCopyConfigurer withCopy()
throws Exception
YarnResourceLocalizerConfigurerDefaultLocalResourcesCopyConfigurer.
JavaConfig:
public void configure(YarnResourceLocalizerConfigure localizer) throws Exception {
localizer
.withCopy()
.copy("foo.jar", "/tmp", true);
}
XML:
<yarn:localresources> <:hdfs path="/tmp/foo.jar" staging="false"/> </yarn:localresources>
withCopy in interface YarnResourceLocalizerConfigurerLocalResourcesCopyConfigurer for chaining
Exception - if error occurred
public LocalResourcesHdfsConfigurer withHdfs()
throws Exception
YarnResourceLocalizerConfigurerDefaultLocalResourcesCopyConfigurer.
JavaConfig:
public void configure(YarnResourceLocalizerConfigure localizer) throws Exception {
localizer
.withHdfs()
.hdfs("/tmp/foo.jar");
}
XML:
<yarn:localresources> <:hdfs path="/tmp/foo.jar" staging="false"/> </yarn:localresources>
withHdfs in interface YarnResourceLocalizerConfigurerLocalResourcesCopyConfigurer for chaining
Exception - if error occurredpublic YarnResourceLocalizerConfigurer stagingDirectory(String stagingDirectory)
stagingDirectory in interface YarnResourceLocalizerConfigurerpublic void configuration(Configuration configuration)
public YarnResourceLocalizerConfigurer defaultLocalResourceType(LocalResourceType type)
public YarnResourceLocalizerConfigurer defaultLocalResourceVisibility(LocalResourceVisibility visibility)
public void setCopyEntries(Collection<LocalResourcesFactoryBean.CopyEntry> copyEntries)
public void setHdfsEntries(Collection<LocalResourcesFactoryBean.TransferEntry> transferEntries)
public void setRawCopyEntries(Collection<LocalResourcesFactoryBean.RawCopyEntry> rawEntries)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||