public class RemoveOldResultsReport extends JanitorReport
RemoveOldResultsReport implements a report, which removes old
result statistics based on two threshold dates, one for monthly and another
one for daily statistics.| Constructor and Description |
|---|
RemoveOldResultsReport(String dataPath,
boolean dryRun)
Creates a new report.
|
RemoveOldResultsReport(String dataPath,
boolean dryRun,
boolean traversalOk)
Creates a new report.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator |
getResult(Session session)
Runs the report and returns a result iterator over
Object[]
instances. |
getDayThresholdDate, getMonthThresholdDate, isDryRun, setDayThresholdDate, setMonthThresholdDatepublic RemoveOldResultsReport(String dataPath, boolean dryRun)
dataPath - the path where result data is stored.dryRun - whether the data should actually be removed.public RemoveOldResultsReport(String dataPath, boolean dryRun, boolean traversalOk)
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 querypublic Iterator getResult(Session session) throws RepositoryException
Object[]
instances.
Returns result rows with the following objects:
String of the node that was removed.getResult in class Reportsession - the session giving access to the workspace.Object[] results.RepositoryException - if an error occurs while reading from the
repository.Copyright © 2010 - 2020 Adobe. All Rights Reserved