org.apache.jcs.auxiliary.disk.file
Class FileDiskCacheFactory

java.lang.Object
  extended by org.apache.jcs.auxiliary.disk.file.FileDiskCacheFactory
All Implemented Interfaces:
AuxiliaryCacheFactory

public class FileDiskCacheFactory
extends Object
implements AuxiliaryCacheFactory

Create Disk File Caches


Constructor Summary
FileDiskCacheFactory()
           
 
Method Summary
 AuxiliaryCache createCache(AuxiliaryCacheAttributes attr, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
          Creates a manager if we don't have one, and then uses the manager to create the cache.
 String getName()
          Gets the name attribute of the DiskCacheFactory object
 void setName(String name)
          Sets the name attribute of the DiskCacheFactory object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDiskCacheFactory

public FileDiskCacheFactory()
Method Detail

createCache

public AuxiliaryCache createCache(AuxiliaryCacheAttributes attr,
                                  ICompositeCacheManager cacheMgr,
                                  ICacheEventLogger cacheEventLogger,
                                  IElementSerializer elementSerializer)
Creates a manager if we don't have one, and then uses the manager to create the cache. The same factory will be called multiple times by the composite cache to create a cache for each region.

Specified by:
createCache in interface AuxiliaryCacheFactory
Parameters:
attr - config
cacheMgr - the manager to use if needed
cacheEventLogger - the event logger
elementSerializer - the serializer
Returns:
AuxiliaryCache

getName

public String getName()
Gets the name attribute of the DiskCacheFactory object

Specified by:
getName in interface AuxiliaryCacheFactory
Returns:
The name value

setName

public void setName(String name)
Sets the name attribute of the DiskCacheFactory object

Specified by:
setName in interface AuxiliaryCacheFactory
Parameters:
name - The new name value


Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.