public class GCNodeWriteMonitor extends Object
Modifier and Type | Field and Description |
---|---|
static GCNodeWriteMonitor |
EMPTY |
Constructor and Description |
---|
GCNodeWriteMonitor(long gcProgressLog,
@NotNull org.apache.jackrabbit.oak.spi.gc.GCMonitor gcMonitor) |
Modifier and Type | Method and Description |
---|---|
void |
finished() |
long |
getCompactedNodes()
Compacted nodes in current cycle
|
int |
getEstimatedPercentage()
Estimated completion percentage.
|
long |
getEstimatedTotal()
Estimated nodes to compact in current cycle.
|
long |
getGcProgressLog() |
void |
init(long prevSize,
long prevCompactedNodes,
long currentSize) |
boolean |
isCompactionRunning() |
void |
onBinary() |
void |
onNode() |
void |
onProperty() |
public static final GCNodeWriteMonitor EMPTY
public GCNodeWriteMonitor(long gcProgressLog, @NotNull @NotNull org.apache.jackrabbit.oak.spi.gc.GCMonitor gcMonitor)
public void init(long prevSize, long prevCompactedNodes, long currentSize)
prevSize
- size from latest successful compactionprevCompactedNodes
- number of nodes compacted during latest compaction operationcurrentSize
- current repository sizepublic void onNode()
public void onProperty()
public void onBinary()
public void finished()
public long getCompactedNodes()
public long getEstimatedTotal()
-1
if the
estimation could not be performed.public int getEstimatedPercentage()
-1
if the estimation
could not be performed.public boolean isCompactionRunning()
public long getGcProgressLog()
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.