|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.fs.LocalResourcesFactoryBean
public class LocalResourcesFactoryBean
Factory bean building ResourceLocalizers objects.
| Nested Class Summary | |
|---|---|
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 Summary | |
|---|---|
LocalResourcesFactoryBean()
|
|
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalResourcesFactoryBean()
| Method Detail |
|---|
public ResourceLocalizer getObject()
throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<ResourceLocalizer>java.lang.Exceptionpublic 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.InitializingBeanjava.lang.Exceptionpublic void setType(org.apache.hadoop.yarn.api.records.LocalResourceType defaultType)
LocalResourceType for entry.
defaultType - the default LocalResourceTypepublic void setVisibility(org.apache.hadoop.yarn.api.records.LocalResourceVisibility defaultVisibility)
LocalResourceVisibility for entry.
defaultVisibility - the default LocalResourceVisibilitypublic void setHdfsEntries(java.util.Collection<LocalResourcesFactoryBean.TransferEntry> hdfsEntries)
hdfsEntries - 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)
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||