|
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 ResourceLocalizer
s objects.
Nested Class Summary | |
---|---|
static class |
LocalResourcesFactoryBean.CopyEntry
Helper class storing 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 |
setLocal(java.lang.String defaultLocal)
Sets default local hdfs base address for entry. |
void |
setRemote(java.lang.String defaultRemote)
Sets default remote hdfs base address for entry. |
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.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 setLocal(java.lang.String defaultLocal)
defaultLocal
- hdfs base addresspublic void setRemote(java.lang.String defaultRemote)
defaultRemote
- hdfs base addresspublic 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 configuration
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |