public class StatisticsQueue extends Object
collectStatistics=trueto the file
activejdbc.properties
on the command line.
After that, simply collect reports like this:
Listtotals = Registry.getStatisticsQueue().getReportSortedBy("total") {
Constructor and Description |
---|
StatisticsQueue(boolean paused) |
Modifier and Type | Method and Description |
---|---|
Future |
enqueue(QueryExecutionEvent event)
Enqueues a query execution event for processing.
|
List<QueryStats> |
getReportSortedBy(String sortByVal)
Produces a report sorted by one of the accepted value.
|
boolean |
isPaused() |
void |
pause(boolean val) |
void |
reset() |
void |
stop()
Shutdowns StatisticsQueue completely, new StatisticsQueue should be created to start gathering statistics again
|
public boolean isPaused()
public void stop()
public void pause(boolean val)
public Future enqueue(QueryExecutionEvent event)
event
- instance of event.null
.public void reset()
public List<QueryStats> getReportSortedBy(String sortByVal)
sortByVal
- - allowed values: "total", "avg", "min", "max", "count"Copyright © 2019 JavaLite. All rights reserved.