Package com.day.crx.statistics.query
Class RemoveOldQueriesReport
- java.lang.Object
-
- com.day.crx.statistics.Report
-
- com.day.crx.statistics.JanitorReport
-
- com.day.crx.statistics.query.RemoveOldQueriesReport
-
public class RemoveOldQueriesReport extends JanitorReport
RemoveOldQueriesReport
implements a report, which removes old query statistics based on two threshold dates, one for monthly and another one for daily statistics.
-
-
Constructor Summary
Constructors Constructor Description RemoveOldQueriesReport(java.lang.String dataPath, boolean dryRun)
Creates a new report.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator
getResult(Session session)
Runs the report and returns a result iterator overObject[]
instances.-
Methods inherited from class com.day.crx.statistics.JanitorReport
getDayThresholdDate, getMonthThresholdDate, isDryRun, setDayThresholdDate, setMonthThresholdDate
-
-
-
-
Method Detail
-
getResult
public java.util.Iterator getResult(Session session) throws RepositoryException
Runs the report and returns a result iterator overObject[]
instances. Returns result rows with the following objects:- Path
String
of the node that was removed.
- Specified by:
getResult
in classReport
- Parameters:
session
- the session giving access to the workspace.- Returns:
- Iterator over
Object
results. - Throws:
RepositoryException
- if an error occurs while reading from the repository.
- Path
-
-