Interface GCJournalFile

All Known Implementing Classes:
AwsGCJournalFile, AzureGCJournalFile, AzureGCJournalFileV8, 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 Summary

    Modifier and Type
    Method
    Description
    Return the list of all written records in the same order as they were written.
    void
    Removes the content of the gc.log
    void
    Write the new line to the GC journal file.
  • Method Details

    • 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
    • truncate

      void truncate() throws IOException
      Removes the content of the gc.log
      Throws:
      IOException