|
|||||||||||
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.hsql.HSQLCache
HSQLDB Based Local Persistence. VERY EXPERIMENTAL, and only partially implemented Requires String keys and does not work with groups.
Nested Class Summary |
Nested classes inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCache |
|
Field Summary | |
(package private) HSQLCacheAttributes |
cattr
|
(package private) java.sql.Connection |
cConn
|
boolean |
isAlive
|
private static org.apache.commons.logging.Log |
log
|
private int |
numInstances
|
(package private) java.sql.Statement |
sStatement
|
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 | |
HSQLCache(HSQLCacheAttributes cattr)
Constructor for the HSQLCache object |
Method Summary | |
void |
doDispose()
Description of the Method |
ICacheElement |
doGet(java.io.Serializable key)
Description of the Method |
boolean |
doRemove(java.io.Serializable key)
Returns true if the removal was succesful; or false if there is nothing to remove. |
void |
doRemoveAll()
Description of the Method |
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. |
void |
reset()
Description of the Method |
(package private) static byte[] |
serialize(java.io.Serializable obj)
Returns the serialized form of the given object in a byte array. |
(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
HSQLCacheAttributes cattr
java.sql.Connection cConn
java.sql.Statement sStatement
Constructor Detail |
public HSQLCache(HSQLCacheAttributes cattr)
cattr
- Method Detail |
void setupTABLE()
public void doUpdate(ICacheElement ce)
doUpdate
in class AbstractDiskCache
public ICacheElement doGet(java.io.Serializable key)
doGet
in class AbstractDiskCache
key
- Key to locate value for.
public boolean doRemove(java.io.Serializable key)
doRemove
in class AbstractDiskCache
key
- Key of object to remove.public void doRemoveAll()
doRemoveAll
in class AbstractDiskCache
public void reset()
public void doDispose()
doDispose
in class AbstractDiskCache
public int getSize()
getSize
in interface AuxiliaryCache
getSize
in class AbstractDiskCache
ICache#getSize
static byte[] serialize(java.io.Serializable obj) throws java.io.IOException
java.io.IOException
public java.util.Set getGroupKeys(java.lang.String groupName)
AuxiliaryCache
getGroupKeys
in interface AuxiliaryCache
getGroupKeys
in class AbstractDiskCache
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |