Class AzureGCJournalFile
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.azure.AzureGCJournalFile
-
- All Implemented Interfaces:
GCJournalFile
public class AzureGCJournalFile extends Object implements GCJournalFile
-
-
Constructor Summary
Constructors Constructor Description AzureGCJournalFile(com.azure.storage.blob.specialized.AppendBlobClient gcJournal)
-
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.void
truncate()
Removes the content of the gc.logvoid
writeLine(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:GCJournalFile
Write the new line to the GC journal file.- Specified by:
writeLine
in 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:GCJournalFile
Return the list of all written records in the same order as they were written.- Specified by:
readLines
in interfaceGCJournalFile
- Returns:
- the list of all written lines
- Throws:
IOException
-
truncate
public void truncate() throws IOException
Description copied from interface:GCJournalFile
Removes the content of the gc.log- Specified by:
truncate
in interfaceGCJournalFile
- Throws:
IOException
-
-