|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheManager
Cache manager for IndexedDiskCaches.
Field Summary | |
private java.util.Hashtable |
caches
|
private static int |
clients
|
private IndexedDiskCacheAttributes |
defaultCacheAttributes
|
private static IndexedDiskCacheManager |
instance
|
private static org.apache.commons.logging.Log |
log
|
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
Constructor Summary | |
private |
IndexedDiskCacheManager(IndexedDiskCacheAttributes defaultCacheAttributes)
Constructor for the IndexedDiskCacheManager object |
Method Summary | |
void |
freeCache(java.lang.String cacheName)
Disposes the cache with the given name, if found in the set of managed caches. |
AuxiliaryCache |
getCache(IndexedDiskCacheAttributes cacheAttributes)
Get an IndexedDiskCache for the supplied attributes. |
AuxiliaryCache |
getCache(java.lang.String cacheName)
Gets an IndexedDiskCache for the supplied name using the default attributes. |
int |
getCacheType()
Gets the cacheType attribute of the DiskCacheManager object |
static IndexedDiskCacheManager |
getInstance(IndexedDiskCacheAttributes defaultCacheAttributes)
Gets the singleton instance of the manager |
void |
release()
Releases the cache manager instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.commons.logging.Log log
private static int clients
private static IndexedDiskCacheManager instance
private java.util.Hashtable caches
private IndexedDiskCacheAttributes defaultCacheAttributes
Constructor Detail |
private IndexedDiskCacheManager(IndexedDiskCacheAttributes defaultCacheAttributes)
defaultCacheAttributes
- Default attributes for caches managed by
the instance.Method Detail |
public static IndexedDiskCacheManager getInstance(IndexedDiskCacheAttributes defaultCacheAttributes)
defaultCacheAttributes
- If the instance has not yet been created,
it will be initialized with this set of
default attributes.
public AuxiliaryCache getCache(java.lang.String cacheName)
getCache
in interface AuxiliaryCacheManager
cacheName
- Name that will be used when creating attributes.
#getCache( IndexedDiskCacheAttributes }
public AuxiliaryCache getCache(IndexedDiskCacheAttributes cacheAttributes)
cacheAttributes
- Attributes the cache should have.
public void freeCache(java.lang.String cacheName)
cacheName
- Name of cache to dispose.public int getCacheType()
getCacheType
in interface ICacheType
public void release()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |