Class 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 Detail

      • RemoveOldQueriesReport

        public RemoveOldQueriesReport​(java.lang.String dataPath,
                                      boolean dryRun)
        Creates a new report.
        dataPath - the path where query data is stored.
        dryRun - whether the data should actually be removed.
    • Method Detail

      • getResult

        public java.util.Iterator getResult​(Session session)
                                     throws RepositoryException
        Runs the report and returns a result iterator over Object[] instances.

        Returns result rows with the following objects:

        • Path String of the node that was removed.
        Specified by:
        getResult in class Report
        session - the session giving access to the workspace.
        Iterator over Object results.
        RepositoryException - if an error occurs while reading from the repository.