|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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()
|
DistributedCache |
getObject()
|
Class<?> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setCacheEntries(Collection<Resource> resources)
Sets the cache entries to be added to the distributed cache. |
void |
setClassPathEntries(Collection<Resource> resources)
Sets the class-path entries to be added to the distributed cache. |
void |
setConfiguration(Configuration conf)
Sets the Hadoop configuration for the cache. |
void |
setCreateSymlink(boolean createSymlink)
Indicates whether to create symlinks or not. |
void |
setEntries(Collection<DistributedCacheFactoryBean.CacheEntry> entries)
Sets the entries to be added to the distributed cache. |
void |
setFileSystem(FileSystem fs)
Sets the Hadoop file system for this cache. |
void |
setLocalEntries(Collection<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 DistributedCache getObject()
throws Exception
getObject in interface FactoryBean<DistributedCache>Exceptionpublic Class<?> getObjectType()
getObjectType in interface FactoryBean<DistributedCache>public boolean isSingleton()
isSingleton in interface FactoryBean<DistributedCache>
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void setEntries(Collection<DistributedCacheFactoryBean.CacheEntry> entries)
entries - The entries to set.public void setLocalEntries(Collection<Resource> resources)
resources - The entries to set.public void setCacheEntries(Collection<Resource> resources)
resources - The entries to set.public void setClassPathEntries(Collection<Resource> resources)
resources - The entries to set.public void setConfiguration(Configuration conf)
conf - The conf to set.public void setFileSystem(FileSystem fs)
fs - File system to set.public void setCreateSymlink(boolean createSymlink)
createSymlink - whether to create symlinks or not.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||