public class DistributedCacheFactoryBean extends Object implements InitializingBean, FactoryBean<DistributedCache>
DistributedCache.| Modifier and Type | Class and Description | 
|---|---|
| static class  | DistributedCacheFactoryBean.CacheEntryClass describing an entry of the distributed cache. | 
| Constructor and Description | 
|---|
| DistributedCacheFactoryBean() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
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.