Class LedgerOffloaderStatsImpl
java.lang.Object
org.apache.bookkeeper.mledger.impl.LedgerOffloaderStatsImpl
- All Implemented Interfaces:
AutoCloseable,Runnable,LedgerOffloaderStats
public final class LedgerOffloaderStatsImpl
extends Object
implements LedgerOffloaderStats, Runnable
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static LedgerOffloaderStatsgetInstance(boolean exposeTopicLevelMetrics, ScheduledExecutorService scheduler, int interval) longgetOffloadBytes(String topic) longgetOffloadError(String topic) io.prometheus.client.Summary.Child.ValuegetReadLedgerLatency(String topic) longgetReadOffloadBytes(String topic) io.prometheus.client.Summary.Child.ValuegetReadOffloadDataLatency(String topic) longgetReadOffloadError(String topic) io.prometheus.client.Summary.Child.ValuegetReadOffloadIndexLatency(String topic) longgetWriteStorageError(String topic) voidrecordDeleteOffloadOps(String topic, boolean succeed) voidrecordOffloadBytes(String topic, long size) voidrecordOffloadError(String topic) voidrecordReadLedgerLatency(String topic, long latency, TimeUnit unit) voidrecordReadOffloadBytes(String topic, long size) voidrecordReadOffloadDataLatency(String topic, long latency, TimeUnit unit) voidrecordReadOffloadError(String topic) voidrecordReadOffloadIndexLatency(String topic, long latency, TimeUnit unit) voidrecordWriteToStorageError(String topic) voidrun()
-
Method Details
-
getInstance
public static LedgerOffloaderStats getInstance(boolean exposeTopicLevelMetrics, ScheduledExecutorService scheduler, int interval) -
recordOffloadError
- Specified by:
recordOffloadErrorin interfaceLedgerOffloaderStats
-
recordOffloadBytes
- Specified by:
recordOffloadBytesin interfaceLedgerOffloaderStats
-
recordReadLedgerLatency
- Specified by:
recordReadLedgerLatencyin interfaceLedgerOffloaderStats
-
recordWriteToStorageError
- Specified by:
recordWriteToStorageErrorin interfaceLedgerOffloaderStats
-
recordReadOffloadError
- Specified by:
recordReadOffloadErrorin interfaceLedgerOffloaderStats
-
recordReadOffloadBytes
- Specified by:
recordReadOffloadBytesin interfaceLedgerOffloaderStats
-
recordReadOffloadIndexLatency
- Specified by:
recordReadOffloadIndexLatencyin interfaceLedgerOffloaderStats
-
recordReadOffloadDataLatency
- Specified by:
recordReadOffloadDataLatencyin interfaceLedgerOffloaderStats
-
recordDeleteOffloadOps
- Specified by:
recordDeleteOffloadOpsin interfaceLedgerOffloaderStats
-
run
public void run() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getOffloadBytes
-
getOffloadError
-
getWriteStorageError
-
getReadOffloadError
-
getReadOffloadBytes
-
getReadLedgerLatency
-
getReadOffloadIndexLatency
-
getReadOffloadDataLatency
-