|
||||||||||
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
org.apache.jcs.auxiliary.disk.jdbc.mysql.MySQLDiskCacheManager
public class MySQLDiskCacheManager
This manages instances of the MySQL jdbc disk cache. It maintains one for each region. One for all regions would work, but this gives us more detailed stats by region.
Although the generic JDBC Disk Cache Manager 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.jdbc.JDBCDiskCacheManagerAbstractTemplate |
---|
caches, clients, tableStates |
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
---|
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
Method Summary | |
---|---|
protected AuxiliaryCache |
createJDBCDiskCache(JDBCDiskCacheAttributes cattr,
TableState tableState)
Creates a JDBCDiskCache using the supplied attributes. |
AuxiliaryCache |
getCache(String cacheName)
Gets the cache attribute of the HSQLCacheManager object |
protected ICompositeCacheManager |
getCompositeCacheManager()
|
MySQLDiskCacheAttributes |
getDefaultJDBCDiskCacheAttributes()
Gets the defaultCattr attribute of the HSQLCacheManager object |
static MySQLDiskCacheManager |
getInstance(MySQLDiskCacheAttributes cattr,
ICompositeCacheManager compositeCacheManager,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Gets the instance attribute of the HSQLCacheManager class |
protected void |
scheduleOptimization(Date startTime,
MySQLTableOptimizer optimizer)
This takes in a single time and schedules the optimizer to be called at that time every day. |
protected void |
scheduleOptimizations(MySQLDiskCacheAttributes attributes,
TableState tableState,
JDBCDiskCachePoolAccess poolAccess)
For each time in the optimization schedule, this calls schedule Optimizaiton. |
protected void |
setCompositeCacheManager(ICompositeCacheManager compositeCacheManager)
|
Methods inherited from class org.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCacheManagerAbstractTemplate |
---|
createShrinkerWhenNeeded, freeCache, getCache, getCacheType, release |
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 |
Method Detail |
---|
public MySQLDiskCacheAttributes getDefaultJDBCDiskCacheAttributes()
public static MySQLDiskCacheManager getInstance(MySQLDiskCacheAttributes cattr, ICompositeCacheManager compositeCacheManager, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
cattr
- compositeCacheManager
- cacheEventLogger
- elementSerializer
-
public AuxiliaryCache getCache(String cacheName)
cacheName
-
protected AuxiliaryCache createJDBCDiskCache(JDBCDiskCacheAttributes cattr, TableState tableState)
createJDBCDiskCache
in class JDBCDiskCacheManagerAbstractTemplate
cattr
- tableState
-
protected void setCompositeCacheManager(ICompositeCacheManager compositeCacheManager)
compositeCacheManager
- the compositeCacheManager to setprotected ICompositeCacheManager getCompositeCacheManager()
protected void scheduleOptimizations(MySQLDiskCacheAttributes attributes, TableState tableState, JDBCDiskCachePoolAccess poolAccess)
attributes
- configuration propeties.tableState
- for noting optimization in progress, etc.poolAccess
- access to the poolprotected void scheduleOptimization(Date startTime, MySQLTableOptimizer optimizer)
startTime
- -- HH:MM:SS formatoptimizer
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |