org.apache.jcs.auxiliary.disk.indexed
Class IndexedDiskCacheFactory

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

public class IndexedDiskCacheFactory
extends java.lang.Object
implements AuxiliaryCacheFactory

Creates disk cache instances.


Constructor Summary
IndexedDiskCacheFactory()
           
 
Method Summary
 AuxiliaryCache createCache(AuxiliaryCacheAttributes iaca, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
          Get an instance of the IndexDiskCacheManager for the attributes and then get an IndexedDiskCache from the manager.
 java.lang.String getName()
          Gets the name attribute of the DiskCacheFactory object
 void setName(java.lang.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

IndexedDiskCacheFactory

public IndexedDiskCacheFactory()
Method Detail

createCache

public AuxiliaryCache createCache(AuxiliaryCacheAttributes iaca,
                                  ICompositeCacheManager cacheMgr,
                                  ICacheEventLogger cacheEventLogger,
                                  IElementSerializer elementSerializer)
Get an instance of the IndexDiskCacheManager for the attributes and then get an IndexedDiskCache from the manager.

The manager is a singleton.

One disk cache is returned per region from the manager.

Specified by:
createCache in interface AuxiliaryCacheFactory
Parameters:
iaca -
cacheMgr - This allows auxiliaries to reference the manager without assuming that it is a singleton. This will allow JCS to be a non-singleton. Also, it makes it easier to test.
cacheEventLogger -
elementSerializer -
Returns:
AuxiliaryCache

getName

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

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

setName

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

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


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