Package com.day.crx.statistics.result
Class RemoveOldResultsReport
- java.lang.Object
-
- com.day.crx.statistics.Report
-
- com.day.crx.statistics.JanitorReport
-
- com.day.crx.statistics.result.RemoveOldResultsReport
-
public class RemoveOldResultsReport extends JanitorReport
RemoveOldResultsReportimplements a report, which removes old result statistics based on two threshold dates, one for monthly and another one for daily statistics.
-
-
Constructor Summary
Constructors Constructor Description RemoveOldResultsReport(java.lang.String dataPath, boolean dryRun)Creates a new report.RemoveOldResultsReport(java.lang.String dataPath, boolean dryRun, boolean traversalOk)Creates a new report.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.IteratorgetResult(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
-
-
-
-
Constructor Detail
-
RemoveOldResultsReport
public RemoveOldResultsReport(java.lang.String dataPath, boolean dryRun)Creates a new report.- Parameters:
dataPath- the path where result data is stored.dryRun- whether the data should actually be removed.
-
RemoveOldResultsReport
public RemoveOldResultsReport(java.lang.String dataPath, boolean dryRun, boolean traversalOk)Creates a new report.- Parameters:
dataPath- the path where result data is stored.dryRun- whether the data should actually be removed.traversalOk- set to true to put "traveral ok" option in the statistics query
-
-
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
Stringof the node that was removed.
- 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.
- Path
-
-