Interface GCJournalFile
- All Known Implementing Classes:
AwsGCJournalFile
,AzureGCJournalFile
,AzureGCJournalFileV8
,LocalGCJournalFile
public interface GCJournalFile
This type abstracts the
The implementation doesn't need to be thread-safe.
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
-
Method Details
-
writeLine
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
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
Removes the content of the gc.log- Throws:
IOException
-