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 and Description |
|---|
RemoveOldQueriesReport(String dataPath,
boolean dryRun)
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 RemoveOldQueriesReport(String dataPath, boolean dryRun)
dataPath - the path where query data is stored.dryRun - whether the data should actually be removed.public 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