Public Member Functions | |
AbstractCacheStatsDataCollector (String virtualDatabaseName) | |
long | collectValue () throws DataCollectorException |
abstract long | getValue (Object cache) |
String | getTargetName () |
Definition at line 37 of file AbstractCacheStatsDataCollector.java.
|
new collector
Definition at line 47 of file AbstractCacheStatsDataCollector.java. 00048 {
00049 super();
00050 this.virtualDatabaseName = virtualDatabaseName;
00051 }
|
|
Implements org.objectweb.cjdbc.common.monitor.AbstractDataCollector. Definition at line 56 of file AbstractCacheStatsDataCollector.java. References org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.getRequestManager(). 00057 { 00058 VirtualDatabase vdb = ((Controller)controller).getVirtualDatabase( 00059 virtualDatabaseName); 00060 AbstractResultCache cache = vdb.getRequestManager().getResultCache(); 00061 if (cache == null) 00062 throw new DataCollectorException(ExceptionTypes.NO_CACHE_ENABLED); 00063 return this.getValue(cache); 00064 }
|
|
Implements org.objectweb.cjdbc.common.monitor.AbstractDataCollector. Definition at line 78 of file AbstractCacheStatsDataCollector.java. 00079 {
00080 return virtualDatabaseName;
00081 }
|
|
We have the cache object so let's get the value we want from ot
Implemented in org.objectweb.cjdbc.common.monitor.cache.CacheEntriesCollector, org.objectweb.cjdbc.common.monitor.cache.CountHitsCollector, org.objectweb.cjdbc.common.monitor.cache.CountInsertCollector, org.objectweb.cjdbc.common.monitor.cache.CountSelectCollector, and org.objectweb.cjdbc.common.monitor.cache.HitsRatioCollector. |