|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.hadoop.fs.DistributedCacheFactoryBean
public class DistributedCacheFactoryBean
Factory for easy declarative configuration of a DistributedCache
.
Nested Class Summary | |
---|---|
static class |
DistributedCacheFactoryBean.CacheEntry
Class describing an entry of the distributed cache. |
Constructor Summary | |
---|---|
DistributedCacheFactoryBean()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistributedCacheFactoryBean()
Method Detail |
---|
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.Exception
public 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.InitializingBean
java.lang.Exception
public 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.
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |