org.springframework.yarn.fs
Class LocalResourcesFactoryBean

java.lang.Object
  extended by org.springframework.yarn.fs.LocalResourcesFactoryBean
All Implemented Interfaces:
FactoryBean<ResourceLocalizer>, InitializingBean

public class LocalResourcesFactoryBean
extends Object
implements InitializingBean, FactoryBean<ResourceLocalizer>

Factory bean building ResourceLocalizers objects.

Author:
Janne Valkealahti

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

LocalResourcesFactoryBean

public LocalResourcesFactoryBean()
Method Detail

getObject

public ResourceLocalizer getObject()
                            throws Exception
Specified by:
getObject in interface FactoryBean<ResourceLocalizer>
Throws:
Exception

getObjectType

public Class<ResourceLocalizer> getObjectType()
Specified by:
getObjectType in interface FactoryBean<ResourceLocalizer>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<ResourceLocalizer>

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setType

public void setType(LocalResourceType defaultType)
Sets default LocalResourceType for entry.

Parameters:
defaultType - the default LocalResourceType

setVisibility

public void setVisibility(LocalResourceVisibility defaultVisibility)
Sets default LocalResourceVisibility for entry.

Parameters:
defaultVisibility - the default LocalResourceVisibility

setHdfsEntries

public void setHdfsEntries(Collection<LocalResourcesFactoryBean.TransferEntry> hdfsEntries)
Sets hdfs entries reference for this factory.

Parameters:
hdfsEntries - Collection of hdfs entries

setCopyEntries

public void setCopyEntries(Collection<LocalResourcesFactoryBean.CopyEntry> copyEntries)
Sets copy entries reference for this factory.

Parameters:
copyEntries - Collection of copy entries

setConfiguration

public void setConfiguration(Configuration configuration)
Sets Yarn configuration for this factory.

Parameters:
configuration - Yarn configuration

setStagingDirectory

public void setStagingDirectory(String stagingDirectory)
Sets the staging directory.

Parameters:
stagingDirectory - the new staging directory
See Also:
setStagingDirectory(Path)

setStagingDirectory

public void setStagingDirectory(Path stagingDirectory)
Sets the staging directory.

Parameters:
stagingDirectory - the new staging directory

setRawCopyEntries

public void setRawCopyEntries(Collection<LocalResourcesFactoryBean.RawCopyEntry> rawEntries)