public class DistributedCacheFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean<org.apache.hadoop.filecache.DistributedCache>
DistributedCache.| Modifier and Type | Class and Description |
|---|---|
static class |
DistributedCacheFactoryBean.CacheEntry
Class describing an entry of the distributed cache.
|
| Constructor and Description |
|---|
DistributedCacheFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.apache.hadoop.filecache.DistributedCache |
getObject() |
java.lang.Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setCacheEntries(java.util.Collection<org.springframework.core.io.Resource> resources)
Sets the cache entries to be added to the distributed cache.
|
void |
setClassPathEntries(java.util.Collection<org.springframework.core.io.Resource> resources)
Sets the class-path entries to be added to the distributed cache.
|
void |
setConfiguration(org.apache.hadoop.conf.Configuration conf)
Sets the Hadoop configuration for the cache.
|
void |
setCreateSymlink(boolean createSymlink)
Indicates whether to create symlinks or not.
|
void |
setEntries(java.util.Collection<DistributedCacheFactoryBean.CacheEntry> entries)
Sets the entries to be added to the distributed cache.
|
void |
setFileSystem(org.apache.hadoop.fs.FileSystem fs)
Sets the Hadoop file system for this cache.
|
void |
setLocalEntries(java.util.Collection<org.springframework.core.io.Resource> resources)
Sets the local entries to be added to the distributed cache.
|
public org.apache.hadoop.filecache.DistributedCache getObject()
throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.filecache.DistributedCache>java.lang.Exceptionpublic java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.filecache.DistributedCache>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.filecache.DistributedCache>public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void setEntries(java.util.Collection<DistributedCacheFactoryBean.CacheEntry> entries)
entries - The entries to set.public void setLocalEntries(java.util.Collection<org.springframework.core.io.Resource> resources)
resources - The entries to set.public void setCacheEntries(java.util.Collection<org.springframework.core.io.Resource> resources)
resources - The entries to set.public void setClassPathEntries(java.util.Collection<org.springframework.core.io.Resource> resources)
resources - The entries to set.public void setConfiguration(org.apache.hadoop.conf.Configuration conf)
conf - The conf to set.public void setFileSystem(org.apache.hadoop.fs.FileSystem fs)
fs - File system to set.public void setCreateSymlink(boolean createSymlink)
createSymlink - whether to create symlinks or not.