public class GCJournal extends Object
gc journal file with the format:
'repoSize, reclaimedSize, timestamp, gcGen, nodes compacted'.| Modifier and Type | Class and Description |
|---|---|
static class |
GCJournal.GCJournalEntry |
| Modifier and Type | Field and Description |
|---|---|
static String |
GC_JOURNAL |
| Modifier and Type | Method and Description |
|---|---|
void |
persist(long reclaimedSize,
long repoSize,
int gcGeneration,
long nodes)
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 static final String GC_JOURNAL
public void persist(long reclaimedSize,
long repoSize,
int gcGeneration,
long nodes)
reclaimedSize - size reclaimed by cleanuprepoSize - current repo sizegcGeneration - gc generationnodes - number of compacted nodespublic GCJournal.GCJournalEntry read()
public Collection<GCJournal.GCJournalEntry> readAll()
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.