|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCacheManagerAbstractTemplate
public abstract class JDBCDiskCacheManagerAbstractTemplate
This class serves as an abstract template for JDBCDiskCache Manager. The MySQL JDBC Disk Cache needs many of the same features as the generic maanger.
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
|---|
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
| Constructor Summary | |
|---|---|
JDBCDiskCacheManagerAbstractTemplate()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheManager |
|---|
getCache |
| Field Detail |
|---|
protected static int clients
protected static java.util.Hashtable caches
protected static java.util.Hashtable tableStates
| Constructor Detail |
|---|
public JDBCDiskCacheManagerAbstractTemplate()
| Method Detail |
|---|
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()
getCacheType in interface ICacheTypepublic void release()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||