public class DefaultLocalResourcesCopyConfigurer extends AnnotationConfigurerAdapter<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder> implements LocalResourcesCopyConfigurer
AnnotationConfigurer
which knows how to handle
copy entries in ResourceLocalizer
.Modifier and Type | Class and Description |
---|---|
class |
DefaultLocalResourcesCopyConfigurer.ConfiguredCopyEntry |
Constructor and Description |
---|
DefaultLocalResourcesCopyConfigurer() |
Modifier and Type | Method and Description |
---|---|
void |
configure(YarnResourceLocalizerBuilder builder)
Configure the
AnnotationBuilder by setting the necessary properties
on the AnnotationBuilder . |
LocalResourcesCopyConfigurer |
copy(java.lang.String[] srcs,
java.lang.String dest,
boolean staging) |
LocalResourcesCopyConfigurer |
copy(java.lang.String src,
java.lang.String dest,
boolean staging) |
LocalResourcesCopyConfigurer |
raw(java.util.Map<java.lang.String,byte[]> raw,
java.lang.String dest) |
LocalResourcesCopyConfigurer |
raw(java.lang.String fileName,
byte[] content,
java.lang.String dest) |
DefaultLocalResourcesCopyConfigurer.ConfiguredCopyEntry |
source(java.lang.String source) |
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and
public void configure(YarnResourceLocalizerBuilder builder) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
by setting the necessary properties
on the AnnotationBuilder
.configure
in interface AnnotationConfigurer<ResourceLocalizer,YarnResourceLocalizerBuilder>
configure
in class AnnotationConfigurerAdapter<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder>
builder
- the builderjava.lang.Exception
- if error occurredpublic LocalResourcesCopyConfigurer copy(java.lang.String src, java.lang.String dest, boolean staging)
copy
in interface LocalResourcesCopyConfigurer
public LocalResourcesCopyConfigurer copy(java.lang.String[] srcs, java.lang.String dest, boolean staging)
copy
in interface LocalResourcesCopyConfigurer
public LocalResourcesCopyConfigurer raw(java.lang.String fileName, byte[] content, java.lang.String dest)
raw
in interface LocalResourcesCopyConfigurer
public LocalResourcesCopyConfigurer raw(java.util.Map<java.lang.String,byte[]> raw, java.lang.String dest)
raw
in interface LocalResourcesCopyConfigurer
public DefaultLocalResourcesCopyConfigurer.ConfiguredCopyEntry source(java.lang.String source)
source
in interface LocalResourcesCopyConfigurer