public class GCNodeWriteMonitor extends Object
Modifier and Type | Field and Description |
---|---|
static GCNodeWriteMonitor |
EMPTY |
Constructor and Description |
---|
GCNodeWriteMonitor(long gcProgressLog) |
Modifier and Type | Method and Description |
---|---|
void |
compacted() |
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 gcCount,
long prevSize,
long prevCompactedNodes,
long currentSize) |
boolean |
isCompactionRunning() |
void |
setGcProgressLog(long gcProgressLog) |
public static final GCNodeWriteMonitor EMPTY
public void compacted()
public void init(long gcCount, long prevSize, long prevCompactedNodes, long currentSize)
gcCount
- current gc runprevSize
- size from latest successful compactionprevCompactedNodes
- number of nodes compacted during latest compaction operationcurrentSize
- current repository sizepublic 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()
public void setGcProgressLog(long gcProgressLog)
Copyright © 2012-2019 The Apache Software Foundation. All Rights Reserved.