Package org.apache.bookkeeper.bookie
Class GarbageCollectionStatus
- java.lang.Object
-
- org.apache.bookkeeper.bookie.GarbageCollectionStatus
-
public class GarbageCollectionStatus extends java.lang.Object
This is the garbage collection thread status. It includes what phase GarbageCollection (major/minor), gc counters, last gc time, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GarbageCollectionStatus.GarbageCollectionStatusBuilder
-
Constructor Summary
Constructors Constructor Description GarbageCollectionStatus(boolean forceCompacting, boolean majorCompacting, boolean minorCompacting, long lastMajorCompactionTime, long lastMinorCompactionTime, long majorCompactionCounter, long minorCompactionCounter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GarbageCollectionStatus.GarbageCollectionStatusBuilder
builder()
long
getLastMajorCompactionTime()
long
getLastMinorCompactionTime()
long
getMajorCompactionCounter()
long
getMinorCompactionCounter()
boolean
isForceCompacting()
boolean
isMajorCompacting()
boolean
isMinorCompacting()
void
setForceCompacting(boolean forceCompacting)
void
setLastMajorCompactionTime(long lastMajorCompactionTime)
void
setLastMinorCompactionTime(long lastMinorCompactionTime)
void
setMajorCompacting(boolean majorCompacting)
void
setMajorCompactionCounter(long majorCompactionCounter)
void
setMinorCompacting(boolean minorCompacting)
void
setMinorCompactionCounter(long minorCompactionCounter)
-
-
-
Method Detail
-
builder
public static GarbageCollectionStatus.GarbageCollectionStatusBuilder builder()
-
setForceCompacting
public void setForceCompacting(boolean forceCompacting)
-
setMajorCompacting
public void setMajorCompacting(boolean majorCompacting)
-
setMinorCompacting
public void setMinorCompacting(boolean minorCompacting)
-
setLastMajorCompactionTime
public void setLastMajorCompactionTime(long lastMajorCompactionTime)
-
setLastMinorCompactionTime
public void setLastMinorCompactionTime(long lastMinorCompactionTime)
-
setMajorCompactionCounter
public void setMajorCompactionCounter(long majorCompactionCounter)
-
setMinorCompactionCounter
public void setMinorCompactionCounter(long minorCompactionCounter)
-
isForceCompacting
public boolean isForceCompacting()
-
isMajorCompacting
public boolean isMajorCompacting()
-
isMinorCompacting
public boolean isMinorCompacting()
-
getLastMajorCompactionTime
public long getLastMajorCompactionTime()
-
getLastMinorCompactionTime
public long getLastMinorCompactionTime()
-
getMajorCompactionCounter
public long getMajorCompactionCounter()
-
getMinorCompactionCounter
public long getMinorCompactionCounter()
-
-