|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.AbstractAuxiliaryCache
org.apache.jcs.auxiliary.AbstractAuxiliaryCacheEventLogging
org.apache.jcs.auxiliary.disk.AbstractDiskCache
org.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCache
org.apache.jcs.auxiliary.disk.jdbc.mysql.MySQLDiskCache
public class MySQLDiskCache
The MySQLDiskCache extends the core JDBCDiskCache.
Although the generic JDBC Disk Cache can be used for MySQL, the MySQL JDBC Disk Cache has additional features, such as table optimization that are particular to MySQL.
Field Summary |
---|
Fields inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCache |
---|
alive, cacheEventQueue, cacheName, purgatory, purgHits |
Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
---|
cacheEventLogger, keyMatcher |
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
---|
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
Constructor Summary | |
---|---|
MySQLDiskCache(MySQLDiskCacheAttributes attributes,
TableState tableState,
ICompositeCacheManager compositeCacheManager)
Delegates to the super and makes use of the MySQL specific parameters used for scheduled optimization. |
Method Summary | |
---|---|
java.lang.String |
constructLikeParameterFromPattern(java.lang.String pattern)
|
protected int |
deleteExpired()
Removed the expired. |
protected ICacheElement |
processGet(java.io.Serializable key)
This delegates to the generic JDBC disk cache. |
protected java.util.Map |
processGetMatching(java.lang.String pattern)
This delegates to the generic JDBC disk cache. |
protected void |
processUpdate(ICacheElement element)
This delegates to the generic JDBC disk cache. |
Methods inherited from class org.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCache |
---|
doesElementExist, getAuxiliaryCacheAttributes, getDiskLocation, getElementSerializer, getGroupKeys, getJdbcDiskCacheAttributes, getPoolAccess, getSize, getStatistics, getTableName, getTableState, initializePoolAccess, processDispose, processRemove, processRemoveAll, reset, serialize, setElementSerializer, setJdbcDiskCacheAttributes, setPoolAccess, setTableState, toString |
Methods inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCache |
---|
dispose, doDispose, doGet, doGetMatching, doRemove, doRemoveAll, doUpdate, get, getCacheName, getCacheType, getEventLoggingExtraInfo, getMatching, getStats, getStatus, processGetMultiple, remove, removeAll, update |
Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCacheEventLogging |
---|
disposeWithEventLogging, getMatchingWithEventLogging, getMultiple, getMultipleWithEventLogging, getWithEventLogging, removeAllWithEventLogging, removeWithEventLogging, updateWithEventLogging |
Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
---|
createICacheEvent, createICacheEvent, getCacheEventLogger, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setKeyMatcher |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jcs.auxiliary.AuxiliaryCache |
---|
setCacheEventLogger |
Methods inherited from interface org.apache.jcs.engine.behavior.ICache |
---|
getMultiple, setKeyMatcher |
Constructor Detail |
---|
public MySQLDiskCache(MySQLDiskCacheAttributes attributes, TableState tableState, ICompositeCacheManager compositeCacheManager)
attributes
- tableState
- compositeCacheManager
- Method Detail |
---|
protected ICacheElement processGet(java.io.Serializable key)
processGet
in class JDBCDiskCache
key
- Key to locate value for.
AbstractDiskCache.doGet(java.io.Serializable)
protected java.util.Map processGetMatching(java.lang.String pattern)
processGetMatching
in class JDBCDiskCache
pattern
- used for like query.
public java.lang.String constructLikeParameterFromPattern(java.lang.String pattern)
constructLikeParameterFromPattern
in class JDBCDiskCache
pattern
-
protected void processUpdate(ICacheElement element)
processUpdate
in class JDBCDiskCache
element
- protected int deleteExpired()
If we are currently optimizing, then this method will balk and do nothing.
TODO consider blocking and trying again.
deleteExpired
in class JDBCDiskCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |