|
|||||||||
| 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()
|
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. |
| 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 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||