Class CompactJournal

  • All Implemented Interfaces:
    Action

    @Command(name="compact",
             description="Compacts the journal of a non running server")
    public final class CompactJournal
    extends LockAbstract
    • Constructor Detail

      • CompactJournal

        public CompactJournal()
    • Method Detail

      • compactJournals

        public static void compactJournals​(org.apache.activemq.artemis.core.config.Configuration configuration)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • compactJournal

        public static void compactJournal​(java.io.File directory,
                                          java.io.File historyFolder,
                                          java.lang.String journalPrefix,
                                          java.lang.String journalSuffix,
                                          int minFiles,
                                          int poolFiles,
                                          int fileSize,
                                          org.apache.activemq.artemis.core.io.IOCriticalErrorListener listener,
                                          byte... replaceableRecords)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception