Interface GCJournalFile

  • All Known Implementing Classes:
    AwsGCJournalFile, AzureGCJournalFile, LocalGCJournalFile

    public interface GCJournalFile
    This type abstracts the gc.log file, used to save information about the segment garbage collection. Each record is represented by a single string.

    The implementation doesn't need to be thread-safe.
    • Method Detail

      • writeLine

        void writeLine​(String line)
                throws IOException
        Write the new line to the GC journal file.
        Parameters:
        line - the line to write. It should contain neither special characters nor the newline \n.
        Throws:
        IOException
      • readLines

        List<String> readLines()
                        throws IOException
        Return the list of all written records in the same order as they were written.
        Returns:
        the list of all written lines
        Throws:
        IOException