public interface GCJournalFile
gc.log
file, used to save information about
the segment garbage collection. Each record is represented by a single string.
Modifier and Type | Method and 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.log
|
void |
writeLine(String line)
Write the new line to the GC journal file.
|
void writeLine(String line) throws IOException
line
- the line to write. It should contain neither special characters
nor the newline \n
.IOException
List<String> readLines() throws IOException
IOException
void truncate() throws IOException
IOException
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.