Interface JournalFile

  • All Known Implementing Classes:
    LocalJournalFile, SplitJournalFile

    public interface JournalFile
    The journal is a special, atomically updated file that records the state of the repository as a sequence of references to successive root node records. See oak-segment-tar documentation for more details.
    • Method Detail

      • openJournalReader

        JournalFileReader openJournalReader()
                                     throws java.io.IOException
        Opens the journal file for reading. The returned object will represent the current state of the journal. Subsequent writes made by the JournalFileWriter won't be visible until a new JournalFileReader is opened.
        Returns:
        the reader representing the current state of the journal
        Throws:
        java.io.IOException
      • openJournalWriter

        JournalFileWriter openJournalWriter()
                                     throws java.io.IOException
        Opens the journal file for writing.
        Returns:
        Throws:
        java.io.IOException
      • getName

        java.lang.String getName()
        Return the name representing the journal file.
        Returns:
        name (eg. file name) representing the journal
      • exists

        boolean exists()
        Check if the journal already exists.
        Returns:
        true if the journal has been already created by the JournalFileWriter