public class QueryStatisticsData extends Object
Modifier and Type | Class and Description |
---|---|
static class |
QueryStatisticsData.QueryEntry
The collected statistics for one query.
|
Constructor and Description |
---|
QueryStatisticsData(int maxQueryEntries) |
Modifier and Type | Method and Description |
---|---|
List<QueryStatisticsData.QueryEntry> |
getQueries() |
void |
setMaxQueryEntries(int maxQueryEntries) |
void |
update(String sqlStatement,
long executionTimeNanos,
int rowCount)
Update query statistics.
|
public void setMaxQueryEntries(int maxQueryEntries)
public List<QueryStatisticsData.QueryEntry> getQueries()
public void update(String sqlStatement, long executionTimeNanos, int rowCount)
sqlStatement
- the statement being executedexecutionTimeNanos
- the time in nanoseconds the query/update took
to executerowCount
- the query or update row countCopyright © 2020 JBoss by Red Hat. All rights reserved.