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.
|
List<SQLTrace> |
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, scheduleTimerTask
public 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 SQLTraceCache
cacheObj
- public List<SQLTrace> getTopQueries()
Copyright © 2018. All rights reserved.