Class GCJournal
java.lang.Object
org.apache.jackrabbit.oak.segment.file.GCJournal
Persists the repository size and the reclaimed size following a cleanup
operation in the
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)'.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.read()
Returns the latest entry availablereadAll()
Returns all available entries from the journal
-
Constructor Details
-
GCJournal
-
-
Method Details
-
persist
public void persist(long reclaimedSize, long repoSize, @NotNull @NotNull GCGeneration gcGeneration, long nodes, @NotNull @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. 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
Returns the latest entry available -
readAll
Returns all available entries from the journal
-