org.springframework.yarn.config.annotation.configurers
Class DefaultLocalResourcesCopyConfigurer
java.lang.Object
org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder>
org.springframework.yarn.config.annotation.configurers.DefaultLocalResourcesCopyConfigurer
- All Implemented Interfaces:
- AnnotationConfigurer<ResourceLocalizer,YarnResourceLocalizerBuilder>, AnnotationConfigurerBuilder<YarnResourceLocalizerConfigurer>, LocalResourcesCopyConfigurer
public class DefaultLocalResourcesCopyConfigurer
- extends AnnotationConfigurerAdapter<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder>
- implements LocalResourcesCopyConfigurer
AnnotationConfigurer
which knows how to handle
copy entries in ResourceLocalizer
.
- Author:
- Janne Valkealahti
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLocalResourcesCopyConfigurer
public DefaultLocalResourcesCopyConfigurer()
configure
public void configure(YarnResourceLocalizerBuilder builder)
throws java.lang.Exception
- Description copied from interface:
AnnotationConfigurer
- Configure the
AnnotationBuilder
by setting the necessary properties
on the AnnotationBuilder
.
- Specified by:
configure
in interface AnnotationConfigurer<ResourceLocalizer,YarnResourceLocalizerBuilder>
- Overrides:
configure
in class AnnotationConfigurerAdapter<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder>
- Parameters:
builder
- the builder
- Throws:
java.lang.Exception
- if error occurred
copy
public LocalResourcesCopyConfigurer copy(java.lang.String src,
java.lang.String dest,
boolean staging)
- Specified by:
copy
in interface LocalResourcesCopyConfigurer
copy
public LocalResourcesCopyConfigurer copy(java.lang.String[] srcs,
java.lang.String dest,
boolean staging)
- Specified by:
copy
in interface LocalResourcesCopyConfigurer
raw
public LocalResourcesCopyConfigurer raw(java.lang.String fileName,
byte[] content,
java.lang.String dest)
- Specified by:
raw
in interface LocalResourcesCopyConfigurer
raw
public LocalResourcesCopyConfigurer raw(java.util.Map<java.lang.String,byte[]> raw,
java.lang.String dest)
- Specified by:
raw
in interface LocalResourcesCopyConfigurer
source
public DefaultLocalResourcesCopyConfigurer.ConfiguredCopyEntry source(java.lang.String source)
- Specified by:
source
in interface LocalResourcesCopyConfigurer