Package com.day.crx.statistics.query
Class RecentQueriesReport
java.lang.Object
com.day.crx.statistics.Report
com.day.crx.statistics.query.RecentQueriesReport
RecentQueriesReport returns a list of the most recent queries.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RecentQueriesReport
Creates a new report.- Parameters:
dataPath- path where query statistics are stored.
-
-
Method Details
-
getResult
Runs the report and returns a result iterator overObject[]instances. Returns result rows with the following objects:- Recent query
String
- Specified by:
getResultin classReport- Parameters:
session- the session giving access to the workspace.- Returns:
- Iterator over
Objectresults. - Throws:
RepositoryException- if an error occurs while reading from the repository.
- Recent query
-
getSize
public int getSize()- Returns:
- the maximum number of queries to return.
-
setSize
public void setSize(int size) - Parameters:
size- the maximum number of queries to return.
-