Interface GCJournalFile
-
- All Known Implementing Classes:
AwsGCJournalFile,AzureGCJournalFile,AzureGCJournalFileV8,LocalGCJournalFile
public interface GCJournalFileThis type abstracts thegc.logfile, 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>readLines()Return the list of all written records in the same order as they were written.voidtruncate()Removes the content of the gc.logvoidwriteLine(String line)Write the new line to the GC journal file.
-
-
-
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
-
truncate
void truncate() throws IOExceptionRemoves the content of the gc.log- Throws:
IOException
-
-