|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(java.lang.String cacheName)
Gets the cache attribute of the HSQLCacheManager object |
MySQLDiskCacheAttributes |
getDefaultJDBCDiskCacheAttributes()
Gets the defaultCattr attribute of the HSQLCacheManager object |
static MySQLDiskCacheManager |
getInstance(MySQLDiskCacheAttributes cattr)
Gets the instance attribute of the HSQLCacheManager class |
protected void |
scheduleOptimization(java.util.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)
For each time in the optimization schedule, this calls schedule Optimizaiton. |
Methods inherited from class org.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCacheManagerAbstractTemplate |
---|
createShrinkerWhenNeeded, freeCache, getCache, getCacheType, release |
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)
cattr
-
public AuxiliaryCache getCache(java.lang.String cacheName)
cacheName
-
protected AuxiliaryCache createJDBCDiskCache(JDBCDiskCacheAttributes cattr, TableState tableState)
createJDBCDiskCache
in class JDBCDiskCacheManagerAbstractTemplate
cattr
- tableState
- An object used by multiple processes to indicate state.
protected void scheduleOptimizations(MySQLDiskCacheAttributes attributes, TableState tableState)
attributes
- tableState
- protected void scheduleOptimization(java.util.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 |