public final class LedgerOffloaderStatsImpl extends Object implements LedgerOffloaderStats, Runnable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic static LedgerOffloaderStats getInstance(boolean exposeTopicLevelMetrics, ScheduledExecutorService scheduler, int interval)
public void recordOffloadError(String topic)
recordOffloadError in interface LedgerOffloaderStatspublic void recordOffloadBytes(String topic, long size)
recordOffloadBytes in interface LedgerOffloaderStatspublic void recordReadLedgerLatency(String topic, long latency, TimeUnit unit)
recordReadLedgerLatency in interface LedgerOffloaderStatspublic void recordWriteToStorageError(String topic)
recordWriteToStorageError in interface LedgerOffloaderStatspublic void recordReadOffloadError(String topic)
recordReadOffloadError in interface LedgerOffloaderStatspublic void recordReadOffloadBytes(String topic, long size)
recordReadOffloadBytes in interface LedgerOffloaderStatspublic void recordReadOffloadIndexLatency(String topic, long latency, TimeUnit unit)
recordReadOffloadIndexLatency in interface LedgerOffloaderStatspublic void recordReadOffloadDataLatency(String topic, long latency, TimeUnit unit)
recordReadOffloadDataLatency in interface LedgerOffloaderStatspublic void recordDeleteOffloadOps(String topic, boolean succeed)
recordDeleteOffloadOps in interface LedgerOffloaderStatspublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic long getOffloadBytes(String topic)
public long getOffloadError(String topic)
public long getWriteStorageError(String topic)
public long getReadOffloadError(String topic)
public long getReadOffloadBytes(String topic)
public io.prometheus.client.Summary.Child.Value getReadLedgerLatency(String topic)
public io.prometheus.client.Summary.Child.Value getReadOffloadIndexLatency(String topic)
public io.prometheus.client.Summary.Child.Value getReadOffloadDataLatency(String topic)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.