org.apache.jcs.auxiliary.disk.jdbc
Class JDBCDiskCacheManager

java.lang.Object
  extended by org.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCacheManagerAbstractTemplate
      extended by org.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCacheManager
All Implemented Interfaces:
java.io.Serializable, AuxiliaryCacheManager, ICacheType

public class JDBCDiskCacheManager
extends JDBCDiskCacheManagerAbstractTemplate

This manages instances of the jdbc disk cache. It maintains one for each region. One for all regions would work, but this gives us more detailed stats by region.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCacheManagerAbstractTemplate
caches, clients, tableStates
 
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE
 
Method Summary
protected  AuxiliaryCache createJDBCDiskCache(JDBCDiskCacheAttributes cattr, TableState tableState)
          Creates a JDBCDiskCache using the supplied attributes.
 AuxiliaryCache getCache(java.lang.String cacheName)
          Gets the cache attribute of the HSQLCacheManager object
 JDBCDiskCacheAttributes getDefaultJDBCDiskCacheAttributes()
          Gets the defaultCattr attribute of the HSQLCacheManager object
static JDBCDiskCacheManager getInstance(JDBCDiskCacheAttributes cattr)
          Gets the instance attribute of the HSQLCacheManager class
 
Methods inherited from class org.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCacheManagerAbstractTemplate
createShrinkerWhenNeeded, freeCache, getCache, getCacheType, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultJDBCDiskCacheAttributes

public JDBCDiskCacheAttributes getDefaultJDBCDiskCacheAttributes()
Gets the defaultCattr attribute of the HSQLCacheManager object

Returns:
The defaultCattr value

getInstance

public static JDBCDiskCacheManager getInstance(JDBCDiskCacheAttributes cattr)
Gets the instance attribute of the HSQLCacheManager class

Parameters:
cattr -
Returns:
The instance value

getCache

public AuxiliaryCache getCache(java.lang.String cacheName)
Gets the cache attribute of the HSQLCacheManager object

Parameters:
cacheName -
Returns:
The cache value

createJDBCDiskCache

protected AuxiliaryCache createJDBCDiskCache(JDBCDiskCacheAttributes cattr,
                                             TableState tableState)
Creates a JDBCDiskCache using the supplied attributes.

Specified by:
createJDBCDiskCache in class JDBCDiskCacheManagerAbstractTemplate
Parameters:
cattr -
tableState - An object used by multiple processes to indicate state.
Returns:


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