Class GCJournal
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.GCJournal
-
public class GCJournal extends Object
Persists the repository size and the reclaimed size following a cleanup operation in thegc.log
file with the format: 'repoSize, reclaimedSize, timestamp, gc generation, gc full generation (since Oak 1.8), number of nodes compacted, root id (since Oak 1.8)'.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GCJournal.GCJournalEntry
-
Constructor Summary
Constructors Constructor Description GCJournal(@NotNull GCJournalFile journalFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
persist(long reclaimedSize, long repoSize, @NotNull GCGeneration gcGeneration, long nodes, @NotNull RecordId root)
Persists the repository stats (current size, reclaimed size, gc generation, number of compacted nodes) following a cleanup operation for a successful compaction.GCJournal.GCJournalEntry
read()
Returns the latest entry availableCollection<GCJournal.GCJournalEntry>
readAll()
Returns all available entries from the journal
-
-
-
Constructor Detail
-
GCJournal
public GCJournal(@NotNull @NotNull GCJournalFile journalFile)
-
-
Method Detail
-
persist
public void persist(long reclaimedSize, long repoSize, @NotNull @NotNull GCGeneration gcGeneration, long nodes, @NotNull @NotNull RecordId root)
Persists the repository stats (current size, reclaimed size, gc generation, number of compacted nodes) following a cleanup operation for a successful compaction. NOOP if the gcGeneration is the same as the one persisted previously.- Parameters:
reclaimedSize
- size reclaimed by cleanuprepoSize
- current repo sizegcGeneration
- gc generationnodes
- number of compacted nodesroot
- record id of the compacted root node
-
read
public GCJournal.GCJournalEntry read()
Returns the latest entry available
-
readAll
public Collection<GCJournal.GCJournalEntry> readAll()
Returns all available entries from the journal
-
-