public class FrequentSQLTraceCache extends SQLTraceCache
| Modifier and Type | Field and Description |
|---|---|
protected long |
maxStoredEntries |
_logger, cache, LINE_BREAK, numTopQueriesToReport, poolName, timeToKeepQueries| Constructor and Description |
|---|
FrequentSQLTraceCache(String poolName,
int numToReport,
long timeToKeepQueries) |
FrequentSQLTraceCache(String poolName,
int numToReport,
long timeToKeepQueries,
long maxStoredEntries) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAndUpdateCache(SQLTrace cacheObj)
Request for adding a sql query in the form of SQLTrace to this cache.
|
String |
getTopQueries()
Returns the String representation of the list of traced sql queries
ordered by the number most frequently used, followed by the usage
timestamp.
|
cancelTimerTask, getPoolName, getSqlTraceList, purgeEntries, scheduleTimerTaskpublic FrequentSQLTraceCache(String poolName, int numToReport, long timeToKeepQueries)
public FrequentSQLTraceCache(String poolName, int numToReport, long timeToKeepQueries, long maxStoredEntries)
public void checkAndUpdateCache(SQLTrace cacheObj)
checkAndUpdateCache in class SQLTraceCachecacheObj - public String getTopQueries()
Copyright © 2017. All rights reserved.