public class SlowQueryAggregatorImpl extends java.lang.Object implements SlowQueryAggregator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BACKTRACE_KEY |
static java.lang.String |
EXPLAIN_PLAN_KEY |
static int |
SLOW_QUERY_LIMIT_PER_REPORTING_PERIOD |
| Constructor and Description |
|---|
SlowQueryAggregatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSlowQueriesFromTransaction(TransactionData td)
Add any slow queries that occurred during the provided transaction.
|
protected void |
addSlowQueriesUnderLock(TransactionData td,
java.util.List<SlowQueryInfo> slowQueries) |
java.util.List<SqlTrace> |
getAndClearSlowQueries()
Returns and resets a list of slow queries since the last time this method was called.
|
protected java.util.List<SlowQueryInfo> |
getSlowQueriesForTesting() |
int |
getSlowQueryCount() |
public static final java.lang.String BACKTRACE_KEY
public static final java.lang.String EXPLAIN_PLAN_KEY
public static final int SLOW_QUERY_LIMIT_PER_REPORTING_PERIOD
public java.util.List<SqlTrace> getAndClearSlowQueries()
SlowQueryAggregatorgetAndClearSlowQueries in interface SlowQueryAggregatorpublic int getSlowQueryCount()
protected java.util.List<SlowQueryInfo> getSlowQueriesForTesting()
public void addSlowQueriesFromTransaction(TransactionData td)
SlowQueryAggregatoraddSlowQueriesFromTransaction in interface SlowQueryAggregatortd - the transaction to check for slow query tracesprotected void addSlowQueriesUnderLock(TransactionData td, java.util.List<SlowQueryInfo> slowQueries)