Class AbstractJournalUpdateTask

    • Constructor Detail

      • AbstractJournalUpdateTask

        protected AbstractJournalUpdateTask​(SequentialFileFactory fileFactory,
                                            JournalImpl journal,
                                            JournalFilesRepository filesRepository,
                                            org.apache.activemq.artemis.utils.collections.ConcurrentLongHashSet recordsSnapshot,
                                            long nextOrderingID)
    • Method Detail

      • writeControlFile

        public static SequentialFile writeControlFile​(SequentialFileFactory fileFactory,
                                                      java.util.List<JournalFile> files,
                                                      java.util.List<JournalFile> newFiles,
                                                      java.util.List<org.apache.activemq.artemis.api.core.Pair<java.lang.String,​java.lang.String>> renames)
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • readControlFile

        public static SequentialFile readControlFile​(SequentialFileFactory fileFactory,
                                                     java.util.List<java.lang.String> dataFiles,
                                                     java.util.List<java.lang.String> newFiles,
                                                     java.util.List<org.apache.activemq.artemis.api.core.Pair<java.lang.String,​java.lang.String>> renameFile)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • flush

        public void flush()
                   throws java.lang.Exception
        Write pending output into file
        Throws:
        java.lang.Exception
      • containsRecord

        public boolean containsRecord​(long id)
      • openFile

        protected void openFile()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addToRecordsSnaptshot

        protected void addToRecordsSnaptshot​(long id)
      • getWritingChannel

        protected org.apache.activemq.artemis.api.core.ActiveMQBuffer getWritingChannel()
        Returns:
        the writingChannel
      • writeEncoder

        protected void writeEncoder​(JournalInternalRecord record)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • writeEncoder

        protected void writeEncoder​(JournalInternalRecord record,
                                    int txcounter)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception