org.exist.fluent
Class QueryService.Statistics

java.lang.Object
  extended by org.exist.fluent.QueryService.Statistics
Enclosing class:
QueryService

public static class QueryService.Statistics
extends Object


Nested Class Summary
static class QueryService.Statistics.Entry
          Performance counters for a single query.
 
Constructor Summary
QueryService.Statistics()
           
 
Method Summary
 List<QueryService.Statistics.Entry> entries()
          Get a list of all statistics entries for which data has been gathered.
 void reset()
          Reset all gathered statistics back to zero.
 String toString()
          Return a string that describes the statistics gathered for all the entries.
 String toStringTop(int n)
          Return a string that describes the statistics for the top n entries, sorted by descending order of total time spent dealing with the query.
 QueryService.Statistics.Entry totals()
          Get the entry that aggregates statistics over all the queries.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryService.Statistics

public QueryService.Statistics()
Method Detail

entries

public List<QueryService.Statistics.Entry> entries()
Get a list of all statistics entries for which data has been gathered. The list is a copy and can be further manipulating without affecting the service.

Returns:
a list of all statistics entries

totals

public QueryService.Statistics.Entry totals()
Get the entry that aggregates statistics over all the queries.

Returns:
the totals entry

reset

public void reset()
Reset all gathered statistics back to zero.


toString

public String toString()
Return a string that describes the statistics gathered for all the entries.

Overrides:
toString in class Object
Returns:
a string describing the statistics gathered so far

toStringTop

public String toStringTop(int n)
Return a string that describes the statistics for the top n entries, sorted by descending order of total time spent dealing with the query. This will always include the totals entry in the first position.

Parameters:
n - the desired number of entries to describe
Returns:
a string describing the statistics for the top n entries


Copyright (C) All rights reserved.