public abstract class JDBCDiskCacheManagerAbstractTemplate extends AbstractDiskCacheManager
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Hashtable |
caches
A map of JDBCDiskCache objects to region names.
|
protected static int |
clients
Incremented on getIntance, decremented on release.
|
protected static java.util.Hashtable |
tableStates
A map of TableState objects to table names.
|
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE| Constructor and Description |
|---|
JDBCDiskCacheManagerAbstractTemplate() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AuxiliaryCache |
createJDBCDiskCache(JDBCDiskCacheAttributes cattr,
TableState tableState)
Children must implement this method.
|
protected void |
createShrinkerWhenNeeded(JDBCDiskCacheAttributes cattr,
AuxiliaryCache raf)
If UseDiskShrinker is true then we will create a shrinker daemon if necessary.
|
void |
freeCache(java.lang.String name) |
AuxiliaryCache |
getCache(JDBCDiskCacheAttributes cattr)
Creates a JDBCDiskCache for the region if one doesn't exist, else it returns the precreated
instance.
|
int |
getCacheType()
Gets the cacheType attribute of the HSQLCacheManager object
|
void |
release()
Disposes of all regions.
|
getCacheEventLogger, getElementSerializer, setCacheEventLogger, setElementSerializerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCacheprotected static int clients
protected static java.util.Hashtable caches
protected static java.util.Hashtable tableStates
public JDBCDiskCacheManagerAbstractTemplate()
protected abstract AuxiliaryCache createJDBCDiskCache(JDBCDiskCacheAttributes cattr, TableState tableState)
cattr - tableState - An object used by multiple processes to indicate state.public AuxiliaryCache getCache(JDBCDiskCacheAttributes cattr)
cattr - protected void createShrinkerWhenNeeded(JDBCDiskCacheAttributes cattr, AuxiliaryCache raf)
cattr - raf - public void freeCache(java.lang.String name)
name - public int getCacheType()
public void release()
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.