|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.disk.AbstractDiskCacheManager
org.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 manager.
| Nested Class Summary | |
|---|---|
protected static class |
JDBCDiskCacheManagerAbstractTemplate.MyThreadFactory
Allows us to set the daemon status on the clock-daemon |
| Field Summary | |
|---|---|
protected static Hashtable<String,JDBCDiskCache<? extends Serializable,? extends Serializable>> |
caches
A map of JDBCDiskCache objects to region names. |
protected static int |
clients
Incremented on getIntance, decremented on release. |
protected static Hashtable<String,TableState> |
tableStates
A map of TableState objects to table names. |
| Constructor Summary | |
|---|---|
JDBCDiskCacheManagerAbstractTemplate()
|
|
| Method Summary | ||
|---|---|---|
protected abstract
|
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(String name)
|
|
|
getCache(JDBCDiskCacheAttributes cattr)
Creates a JDBCDiskCache for the region if one doesn't exist, else it returns the pre-created instance. |
|
void |
release()
Disposes of all regions. |
|
| Methods inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCacheManager |
|---|
getCacheEventLogger, getElementSerializer, setCacheEventLogger, setElementSerializer |
| 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 Hashtable<String,JDBCDiskCache<? extends Serializable,? extends Serializable>> caches
protected static Hashtable<String,TableState> tableStates
| Constructor Detail |
|---|
public JDBCDiskCacheManagerAbstractTemplate()
| Method Detail |
|---|
protected abstract <K extends Serializable,V extends Serializable> JDBCDiskCache<K,V> createJDBCDiskCache(JDBCDiskCacheAttributes cattr,
TableState tableState)
cattr - tableState - An object used by multiple processes to indicate state.
public <K extends Serializable,V extends Serializable> JDBCDiskCache<K,V> getCache(JDBCDiskCacheAttributes cattr)
cattr -
protected void createShrinkerWhenNeeded(JDBCDiskCacheAttributes cattr,
AuxiliaryCache<?,?> raf)
cattr - raf - public void freeCache(String name)
name - public void release()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||