public class LocalResourcesFactoryBean extends Object implements InitializingBean, FactoryBean<ResourceLocalizer>
ResourceLocalizers objects.| Modifier and Type | Class and Description |
|---|---|
static class |
LocalResourcesFactoryBean.CopyEntry
Helper class storing copy entries.
|
static class |
LocalResourcesFactoryBean.RawCopyEntry
Helper class storing raw copy entries.
|
static class |
LocalResourcesFactoryBean.TransferEntry
Helper class storing transfer entries.
|
| Constructor and Description |
|---|
LocalResourcesFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
ResourceLocalizer |
getObject() |
Class<ResourceLocalizer> |
getObjectType() |
boolean |
isSingleton() |
void |
setConfiguration(Configuration configuration)
Sets Yarn configuration for this factory.
|
void |
setCopyEntries(Collection<LocalResourcesFactoryBean.CopyEntry> copyEntries)
Sets copy entries reference for this factory.
|
void |
setHdfsEntries(Collection<LocalResourcesFactoryBean.TransferEntry> hdfsEntries)
Sets hdfs entries reference for this factory.
|
void |
setRawCopyEntries(Collection<LocalResourcesFactoryBean.RawCopyEntry> rawEntries) |
void |
setStagingDirectory(Path stagingDirectory)
Sets the staging directory.
|
void |
setStagingDirectory(String stagingDirectory)
Sets the staging directory.
|
void |
setType(LocalResourceType defaultType)
Sets default
LocalResourceType for entry. |
void |
setVisibility(LocalResourceVisibility defaultVisibility)
Sets default
LocalResourceVisibility for entry. |
public ResourceLocalizer getObject() throws Exception
getObject in interface FactoryBean<ResourceLocalizer>Exceptionpublic Class<ResourceLocalizer> getObjectType()
getObjectType in interface FactoryBean<ResourceLocalizer>public boolean isSingleton()
isSingleton in interface FactoryBean<ResourceLocalizer>public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void setType(LocalResourceType defaultType)
LocalResourceType for entry.defaultType - the default LocalResourceTypepublic void setVisibility(LocalResourceVisibility defaultVisibility)
LocalResourceVisibility for entry.defaultVisibility - the default LocalResourceVisibilitypublic void setHdfsEntries(Collection<LocalResourcesFactoryBean.TransferEntry> hdfsEntries)
hdfsEntries - Collection of hdfs entriespublic void setCopyEntries(Collection<LocalResourcesFactoryBean.CopyEntry> copyEntries)
copyEntries - Collection of copy entriespublic void setConfiguration(Configuration configuration)
configuration - Yarn configurationpublic void setStagingDirectory(String stagingDirectory)
stagingDirectory - the new staging directorysetStagingDirectory(Path)public void setStagingDirectory(Path stagingDirectory)
stagingDirectory - the new staging directorypublic void setRawCopyEntries(Collection<LocalResourcesFactoryBean.RawCopyEntry> rawEntries)