Class LocalGCJournalFile
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.LocalGCJournalFile
-
- All Implemented Interfaces:
GCJournalFile
public class LocalGCJournalFile extends Object implements GCJournalFile
-
-
Constructor Summary
Constructors Constructor Description LocalGCJournalFile(File file)LocalGCJournalFile(File parent, String name)
-
Method Summary
All Methods Instance Methods Concrete 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
public void writeLine(String line) throws IOException
Description copied from interface:GCJournalFileWrite the new line to the GC journal file.- Specified by:
writeLinein interfaceGCJournalFile- Parameters:
line- the line to write. It should contain neither special characters nor the newline\n.- Throws:
IOException
-
readLines
public List<String> readLines() throws IOException
Description copied from interface:GCJournalFileReturn the list of all written records in the same order as they were written.- Specified by:
readLinesin interfaceGCJournalFile- Returns:
- the list of all written lines
- Throws:
IOException
-
truncate
public void truncate() throws IOExceptionDescription copied from interface:GCJournalFileRemoves the content of the gc.log- Specified by:
truncatein interfaceGCJournalFile- Throws:
IOException
-
-