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

java.lang.Object
  extended by org.apache.jcs.auxiliary.disk.AbstractDiskCacheManager
      extended by org.apache.jcs.auxiliary.disk.file.FileDiskCacheManager
All Implemented Interfaces:
Serializable, AuxiliaryCacheManager, ICacheType

public class FileDiskCacheManager
extends AbstractDiskCacheManager

This is a non singleton. It creates caches on a per region basis.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE
 
Constructor Summary
protected FileDiskCacheManager(FileDiskCacheAttributes defaultCacheAttributes, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
          Constructor for the DiskFileCacheManager object
 
Method Summary
 AuxiliaryCache getCache(FileDiskCacheAttributes cacheAttributes)
          Get an DiskFileCache for the supplied attributes.
 AuxiliaryCache getCache(String cacheName)
          Gets an DiskFileCache for the supplied name using the default attributes.
 int getCacheType()
          Gets the cacheType attribute of the DiskCacheManager object
 
Methods inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCacheManager
getCacheEventLogger, getElementSerializer, setCacheEventLogger, setElementSerializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDiskCacheManager

protected FileDiskCacheManager(FileDiskCacheAttributes defaultCacheAttributes,
                               ICacheEventLogger cacheEventLogger,
                               IElementSerializer elementSerializer)
Constructor for the DiskFileCacheManager object

Parameters:
defaultCacheAttributes - Default attributes for caches managed by the instance.
cacheEventLogger -
elementSerializer -
Method Detail

getCache

public AuxiliaryCache getCache(String cacheName)
Gets an DiskFileCache for the supplied name using the default attributes.

Parameters:
cacheName - Name that will be used when creating attributes.
Returns:
A cache.

getCache

public AuxiliaryCache getCache(FileDiskCacheAttributes cacheAttributes)
Get an DiskFileCache for the supplied attributes. Will provide an existing cache for the name attribute if one has been created, or will create a new cache.

Parameters:
cacheAttributes - Attributes the cache should have.
Returns:
A cache, either from the existing set or newly created.

getCacheType

public int getCacheType()
Gets the cacheType attribute of the DiskCacheManager object

Returns:
The cacheType value


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