public class LocalResourcesFactoryBean extends java.lang.Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean<ResourceLocalizer>
ResourceLocalizer
s 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() |
java.lang.Class<ResourceLocalizer> |
getObjectType() |
boolean |
isSingleton() |
void |
setConfiguration(org.apache.hadoop.conf.Configuration configuration)
Sets Yarn configuration for this factory.
|
void |
setCopyEntries(java.util.Collection<LocalResourcesFactoryBean.CopyEntry> copyEntries)
Sets copy entries reference for this factory.
|
void |
setHdfsEntries(java.util.Collection<LocalResourcesFactoryBean.TransferEntry> hdfsEntries)
Sets hdfs entries reference for this factory.
|
void |
setHdfsEntries(java.lang.String id,
java.util.Collection<LocalResourcesFactoryBean.TransferEntry> hdfsEntries)
Sets hdfs entries reference for this factory.
|
void |
setRawCopyEntries(java.util.Collection<LocalResourcesFactoryBean.RawCopyEntry> rawEntries) |
void |
setStagingDirectory(org.apache.hadoop.fs.Path stagingDirectory)
Sets the staging directory.
|
void |
setStagingDirectory(java.lang.String stagingDirectory)
Sets the staging directory.
|
void |
setType(org.apache.hadoop.yarn.api.records.LocalResourceType defaultType)
Sets default
LocalResourceType for entry. |
void |
setVisibility(org.apache.hadoop.yarn.api.records.LocalResourceVisibility defaultVisibility)
Sets default
LocalResourceVisibility for entry. |
public ResourceLocalizer getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<ResourceLocalizer>
java.lang.Exception
public java.lang.Class<ResourceLocalizer> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<ResourceLocalizer>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<ResourceLocalizer>
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setType(org.apache.hadoop.yarn.api.records.LocalResourceType defaultType)
LocalResourceType
for entry.defaultType
- the default LocalResourceType
public void setVisibility(org.apache.hadoop.yarn.api.records.LocalResourceVisibility defaultVisibility)
LocalResourceVisibility
for entry.defaultVisibility
- the default LocalResourceVisibility
public void setHdfsEntries(java.util.Collection<LocalResourcesFactoryBean.TransferEntry> hdfsEntries)
hdfsEntries
- Collection of hdfs entriespublic void setHdfsEntries(java.lang.String id, java.util.Collection<LocalResourcesFactoryBean.TransferEntry> hdfsEntries)
id
- the identifierhdfsEntries
- Collection of hdfs entriespublic void setCopyEntries(java.util.Collection<LocalResourcesFactoryBean.CopyEntry> copyEntries)
copyEntries
- Collection of copy entriespublic void setConfiguration(org.apache.hadoop.conf.Configuration configuration)
configuration
- Yarn configurationpublic void setStagingDirectory(java.lang.String stagingDirectory)
stagingDirectory
- the new staging directorysetStagingDirectory(Path)
public void setStagingDirectory(org.apache.hadoop.fs.Path stagingDirectory)
stagingDirectory
- the new staging directorypublic void setRawCopyEntries(java.util.Collection<LocalResourcesFactoryBean.RawCopyEntry> rawEntries)