Class LogCleaner

  • All Implemented Interfaces:
    StoreConstants, org.xml.sax.ContentHandler

    public class LogCleaner
    extends LogManagerHandler
    Since:
    jcms-5.5.0
    Author:
    Olivier Dedieu
    • Constructor Detail

      • LogCleaner

        public LogCleaner​(Store store)
    • Method Detail

      • cleanLogFile

        public LogCleanerReport cleanLogFile​(java.lang.String backupFilename,
                                             CleanFilter filter,
                                             LogCleanerObserver obs)
        Clean the store.
        Parameters:
        backupFilename - the backup file
        filter - the CleanFilter to apply
        obs - the LogCleanerObserver (may be null)
        Returns:
        the clean report
        Since:
        jcms-10.0.8
      • cleanLogDir

        public LogCleanerReport cleanLogDir​(java.lang.String backupDirname,
                                            CleanFilter filter,
                                            LogCleanerObserver obs)
        Clean the store directory.
        Parameters:
        backupDirname - the backup directory
        filter - the CleanFilter to apply
        obs - the LogCleanerObserver (may be null)
        Returns:
        the clean report
        Since:
        jcms-10.0.8