Class GarbageCollectorStats
- java.lang.Object
-
- org.apache.bookkeeper.bookie.stats.GarbageCollectorStats
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StatsLogger
statsLogger
-
Constructor Summary
Constructors Constructor Description GarbageCollectorStats(StatsLogger statsLogger, java.util.function.Supplier<java.lang.Integer> activeEntryLogCountSupplier, java.util.function.Supplier<java.lang.Long> activeEntryLogSpaceBytesSupplier, java.util.function.Supplier<java.lang.Integer> activeLedgerCountSupplier, java.util.function.Supplier<java.lang.Double> entryLogCompactRatioSupplier, java.util.function.Supplier<int[]> usageBuckets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Gauge<java.lang.Integer>
getActiveEntryLogCountGauge()
Gauge<java.lang.Long>
getActiveEntryLogSpaceBytesGauge()
Gauge<java.lang.Integer>
getActiveLedgerCountGauge()
OpStatsLogger
getCompactRuntime()
Counter
getDeletedLedgerCounter()
Gauge<java.lang.Double>
getEntryLogCompactRatioGauge()
int[]
getEntryLogUsageBuckets()
Gauge<java.lang.Integer>[]
getEntryLogUsageBucketsLeGauges()
OpStatsLogger
getExtractMetaRuntime()
OpStatsLogger
getGcLedgerRuntime()
OpStatsLogger
getGcThreadRuntime()
Counter
getMajorCompactionCounter()
Counter
getMinorCompactionCounter()
Counter
getReclaimedSpaceViaCompaction()
Counter
getReclaimedSpaceViaDeletes()
Counter
getReclaimFailedToDelete()
StatsLogger
getStatsLogger()
void
setEntryLogUsageBuckets(int[] usageBuckets)
-
-
-
Field Detail
-
statsLogger
final StatsLogger statsLogger
-
-
Constructor Detail
-
GarbageCollectorStats
public GarbageCollectorStats(StatsLogger statsLogger, java.util.function.Supplier<java.lang.Integer> activeEntryLogCountSupplier, java.util.function.Supplier<java.lang.Long> activeEntryLogSpaceBytesSupplier, java.util.function.Supplier<java.lang.Integer> activeLedgerCountSupplier, java.util.function.Supplier<java.lang.Double> entryLogCompactRatioSupplier, java.util.function.Supplier<int[]> usageBuckets)
-
-
Method Detail
-
setEntryLogUsageBuckets
public void setEntryLogUsageBuckets(int[] usageBuckets)
-
getStatsLogger
public StatsLogger getStatsLogger()
-
getMinorCompactionCounter
public Counter getMinorCompactionCounter()
-
getMajorCompactionCounter
public Counter getMajorCompactionCounter()
-
getReclaimedSpaceViaDeletes
public Counter getReclaimedSpaceViaDeletes()
-
getReclaimedSpaceViaCompaction
public Counter getReclaimedSpaceViaCompaction()
-
getReclaimFailedToDelete
public Counter getReclaimFailedToDelete()
-
getDeletedLedgerCounter
public Counter getDeletedLedgerCounter()
-
getGcThreadRuntime
public OpStatsLogger getGcThreadRuntime()
-
getActiveEntryLogCountGauge
public Gauge<java.lang.Integer> getActiveEntryLogCountGauge()
-
getActiveEntryLogSpaceBytesGauge
public Gauge<java.lang.Long> getActiveEntryLogSpaceBytesGauge()
-
getActiveLedgerCountGauge
public Gauge<java.lang.Integer> getActiveLedgerCountGauge()
-
getGcLedgerRuntime
public OpStatsLogger getGcLedgerRuntime()
-
getCompactRuntime
public OpStatsLogger getCompactRuntime()
-
getExtractMetaRuntime
public OpStatsLogger getExtractMetaRuntime()
-
getEntryLogCompactRatioGauge
public Gauge<java.lang.Double> getEntryLogCompactRatioGauge()
-
getEntryLogUsageBuckets
public int[] getEntryLogUsageBuckets()
-
getEntryLogUsageBucketsLeGauges
public Gauge<java.lang.Integer>[] getEntryLogUsageBucketsLeGauges()
-
-