|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jcs.auxiliary.disk.AbstractDiskCache
org.apache.jcs.auxiliary.disk.jisp.JISPCache
JISP disk cache implementation. Slow as hell with this type of key. VERY EXPERIMENTAL, and only partially implemented Does not work with groups.
| Nested Class Summary |
| Nested classes inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCache |
|
| Field Summary | |
(package private) JISPCacheAttributes |
cattr
|
(package private) com.coyotegulch.jisp.IndexedObjectDatabase |
database
|
(package private) com.coyotegulch.jisp.BTreeIndex |
index1
|
boolean |
isAlive
Description of the Field |
(package private) java.lang.String |
jispDataFileName
|
(package private) java.lang.String |
jispIndexFileName
|
private static org.apache.commons.logging.Log |
log
|
private int |
numInstances
|
private static int |
s_order
|
| Fields inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCache |
alive, cacheEventQueue, cacheName, lock, locker, purgatory, purgHits |
| Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
| Constructor Summary | |
JISPCache(JISPCacheAttributes cattr)
Constructor for the JISPCache object |
|
| Method Summary | |
void |
createDB(boolean clear)
Description of the Method |
void |
doDispose()
Description of the Method |
protected ICacheElement |
doGet(java.io.Serializable key)
Description of the Method |
protected boolean |
doRemove(java.io.Serializable key)
Returns true if the removal was succesful; or false if there is nothing to remove. |
protected void |
doRemoveAll()
Description of the Method |
protected void |
doUpdate(ICacheElement ce)
Description of the Method |
java.util.Set |
getGroupKeys(java.lang.String groupName)
Gets the set of keys of objects currently in the group |
int |
getSize()
Returns the current cache size. |
private void |
reset()
Description of the Method |
(package private) void |
setupTABLE()
SETUP TABLE FOR CACHE |
| Methods inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCache |
dispose, get, getCacheName, getCacheType, getStatus, remove, removeAll, update |
| 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 int numInstances
public boolean isAlive
JISPCacheAttributes cattr
com.coyotegulch.jisp.IndexedObjectDatabase database
com.coyotegulch.jisp.BTreeIndex index1
private static int s_order
java.lang.String jispDataFileName
java.lang.String jispIndexFileName
| Constructor Detail |
public JISPCache(JISPCacheAttributes cattr)
cattr - | Method Detail |
void setupTABLE()
public void createDB(boolean clear)
throws java.lang.Exception
java.lang.Exceptionprotected void doUpdate(ICacheElement ce)
doUpdate in class AbstractDiskCacheprotected ICacheElement doGet(java.io.Serializable key)
doGet in class AbstractDiskCachekey - Key to locate value for.
public java.util.Set getGroupKeys(java.lang.String groupName)
AuxiliaryCache
getGroupKeys in interface AuxiliaryCachegetGroupKeys in class AbstractDiskCacheprotected boolean doRemove(java.io.Serializable key)
doRemove in class AbstractDiskCachekey - Key of object to remove.protected void doRemoveAll()
doRemoveAll in class AbstractDiskCacheprivate void reset()
public void doDispose()
doDispose in class AbstractDiskCachepublic int getSize()
getSize in interface AuxiliaryCachegetSize in class AbstractDiskCacheICache#getSize
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||