public class GCJournal extends Object
gc.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)'.Modifier and Type | Class and Description |
---|---|
static class |
GCJournal.GCJournalEntry |
Constructor and Description |
---|
GCJournal(@NotNull GCJournalFile journalFile) |
Modifier and Type | Method and Description |
---|---|
void |
persist(long reclaimedSize,
long repoSize,
@NotNull GCGeneration gcGeneration,
long nodes,
@NotNull String 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 available
|
Collection<GCJournal.GCJournalEntry> |
readAll()
Returns all available entries from the journal
|
public GCJournal(@NotNull @NotNull GCJournalFile journalFile)
public void persist(long reclaimedSize, long repoSize, @NotNull @NotNull GCGeneration gcGeneration, long nodes, @NotNull @NotNull String root)
reclaimedSize
- size reclaimed by cleanuprepoSize
- current repo sizegcGeneration
- gc generationnodes
- number of compacted nodesroot
- record id of the compacted root nodepublic GCJournal.GCJournalEntry read()
public Collection<GCJournal.GCJournalEntry> readAll()
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.