Class ManagedLedgerMBeanImpl

java.lang.Object
org.apache.bookkeeper.mledger.impl.ManagedLedgerMBeanImpl
All Implemented Interfaces:
ManagedLedgerMXBean

public class ManagedLedgerMBeanImpl extends Object implements ManagedLedgerMXBean
  • Field Details

    • ENTRY_LATENCY_BUCKETS_USEC

      public static final long[] ENTRY_LATENCY_BUCKETS_USEC
    • ENTRY_SIZE_BUCKETS_BYTES

      public static final long[] ENTRY_SIZE_BUCKETS_BYTES
  • Constructor Details

    • ManagedLedgerMBeanImpl

      public ManagedLedgerMBeanImpl(ManagedLedgerImpl managedLedger)
  • Method Details

    • refreshStats

      public void refreshStats(long period, TimeUnit unit)
    • addAddEntrySample

      public void addAddEntrySample(long size)
    • addMarkDeleteOp

      public void addMarkDeleteOp()
    • recordAddEntryError

      public void recordAddEntryError()
    • recordReadEntriesError

      public void recordReadEntriesError()
    • recordReadEntriesOpsCacheMisses

      public void recordReadEntriesOpsCacheMisses(int count, long totalSize)
    • addAddEntryLatencySample

      public void addAddEntryLatencySample(long latency, TimeUnit unit)
    • addLedgerAddEntryLatencySample

      public void addLedgerAddEntryLatencySample(long latency, TimeUnit unit)
    • addLedgerSwitchLatencySample

      public void addLedgerSwitchLatencySample(long latency, TimeUnit unit)
    • addReadEntriesSample

      public void addReadEntriesSample(int count, long totalSize)
    • startDataLedgerOpenOp

      public void startDataLedgerOpenOp()
    • endDataLedgerOpenOp

      public void endDataLedgerOpenOp()
    • startDataLedgerCloseOp

      public void startDataLedgerCloseOp()
    • endDataLedgerCloseOp

      public void endDataLedgerCloseOp()
    • startDataLedgerCreateOp

      public void startDataLedgerCreateOp()
    • endDataLedgerCreateOp

      public void endDataLedgerCreateOp()
    • startDataLedgerDeleteOp

      public void startDataLedgerDeleteOp()
    • endDataLedgerDeleteOp

      public void endDataLedgerDeleteOp()
    • startCursorLedgerOpenOp

      public void startCursorLedgerOpenOp()
    • endCursorLedgerOpenOp

      public void endCursorLedgerOpenOp()
    • startCursorLedgerCloseOp

      public void startCursorLedgerCloseOp()
    • endCursorLedgerCloseOp

      public void endCursorLedgerCloseOp()
    • startCursorLedgerCreateOp

      public void startCursorLedgerCreateOp()
    • endCursorLedgerCreateOp

      public void endCursorLedgerCreateOp()
    • startCursorLedgerDeleteOp

      public void startCursorLedgerDeleteOp()
    • endCursorLedgerDeleteOp

      public void endCursorLedgerDeleteOp()
    • getName

      public String getName()
      Specified by:
      getName in interface ManagedLedgerMXBean
      Returns:
      the ManagedLedger name
    • getAddEntryMessagesRate

      public double getAddEntryMessagesRate()
      Specified by:
      getAddEntryMessagesRate in interface ManagedLedgerMXBean
      Returns:
      the msg/s rate of messages added
    • getAddEntryBytesRate

      public double getAddEntryBytesRate()
      Specified by:
      getAddEntryBytesRate in interface ManagedLedgerMXBean
      Returns:
      the bytes/s rate of messages added
    • getAddEntryWithReplicasBytesRate

      public double getAddEntryWithReplicasBytesRate()
      Specified by:
      getAddEntryWithReplicasBytesRate in interface ManagedLedgerMXBean
      Returns:
      the bytes/s rate of messages added with replicas
    • getReadEntriesRate

      public double getReadEntriesRate()
      Specified by:
      getReadEntriesRate in interface ManagedLedgerMXBean
      Returns:
      the msg/s rate of messages read
    • getReadEntriesBytesRate

      public double getReadEntriesBytesRate()
      Specified by:
      getReadEntriesBytesRate in interface ManagedLedgerMXBean
      Returns:
      the bytes/s rate of messages read
    • getAddEntrySucceed

      public long getAddEntrySucceed()
      Specified by:
      getAddEntrySucceed in interface ManagedLedgerMXBean
      Returns:
      the number of addEntry requests that succeeded
    • getAddEntryErrors

      public long getAddEntryErrors()
      Specified by:
      getAddEntryErrors in interface ManagedLedgerMXBean
      Returns:
      the number of addEntry requests that failed
    • getReadEntriesSucceeded

      public long getReadEntriesSucceeded()
      Specified by:
      getReadEntriesSucceeded in interface ManagedLedgerMXBean
      Returns:
      the number of readEntries requests that succeeded
    • getReadEntriesErrors

      public long getReadEntriesErrors()
      Specified by:
      getReadEntriesErrors in interface ManagedLedgerMXBean
      Returns:
      the number of readEntries requests that failed
    • getReadEntriesOpsCacheMissesRate

      public double getReadEntriesOpsCacheMissesRate()
      Specified by:
      getReadEntriesOpsCacheMissesRate in interface ManagedLedgerMXBean
      Returns:
      the number of readEntries requests that cache miss Rate
    • getMarkDeleteRate

      public double getMarkDeleteRate()
      Specified by:
      getMarkDeleteRate in interface ManagedLedgerMXBean
      Returns:
      the rate of mark-delete ops/s
    • getEntrySizeAverage

      public double getEntrySizeAverage()
      Specified by:
      getEntrySizeAverage in interface ManagedLedgerMXBean
    • getEntrySizeBuckets

      public long[] getEntrySizeBuckets()
      Specified by:
      getEntrySizeBuckets in interface ManagedLedgerMXBean
    • getAddEntryLatencyAverageUsec

      public double getAddEntryLatencyAverageUsec()
      Specified by:
      getAddEntryLatencyAverageUsec in interface ManagedLedgerMXBean
    • getAddEntryLatencyBuckets

      public long[] getAddEntryLatencyBuckets()
      Specified by:
      getAddEntryLatencyBuckets in interface ManagedLedgerMXBean
    • getLedgerAddEntryLatencyAverageUsec

      public double getLedgerAddEntryLatencyAverageUsec()
      Specified by:
      getLedgerAddEntryLatencyAverageUsec in interface ManagedLedgerMXBean
    • getLedgerAddEntryLatencyBuckets

      public long[] getLedgerAddEntryLatencyBuckets()
      Specified by:
      getLedgerAddEntryLatencyBuckets in interface ManagedLedgerMXBean
    • getLedgerSwitchLatencyBuckets

      public long[] getLedgerSwitchLatencyBuckets()
      Specified by:
      getLedgerSwitchLatencyBuckets in interface ManagedLedgerMXBean
    • getInternalAddEntryLatencyBuckets

      public StatsBuckets getInternalAddEntryLatencyBuckets()
      Specified by:
      getInternalAddEntryLatencyBuckets in interface ManagedLedgerMXBean
    • getInternalLedgerAddEntryLatencyBuckets

      public StatsBuckets getInternalLedgerAddEntryLatencyBuckets()
      Specified by:
      getInternalLedgerAddEntryLatencyBuckets in interface ManagedLedgerMXBean
    • getInternalEntrySizeBuckets

      public StatsBuckets getInternalEntrySizeBuckets()
      Specified by:
      getInternalEntrySizeBuckets in interface ManagedLedgerMXBean
    • getLedgerSwitchLatencyAverageUsec

      public double getLedgerSwitchLatencyAverageUsec()
      Specified by:
      getLedgerSwitchLatencyAverageUsec in interface ManagedLedgerMXBean
    • getStoredMessagesSize

      public long getStoredMessagesSize()
      Specified by:
      getStoredMessagesSize in interface ManagedLedgerMXBean
      Returns:
      the total size of the messages in active ledgers (accounting for the multiple copies stored)
    • getStoredMessagesLogicalSize

      public long getStoredMessagesLogicalSize()
      Specified by:
      getStoredMessagesLogicalSize in interface ManagedLedgerMXBean
      Returns:
      the total size of the messages in active ledgers (without accounting for replicas)
    • getNumberOfMessagesInBacklog

      public long getNumberOfMessagesInBacklog()
      Specified by:
      getNumberOfMessagesInBacklog in interface ManagedLedgerMXBean
      Returns:
      the number of backlog messages for all the consumers
    • getPendingBookieOpsStats

      public PendingBookieOpsStats getPendingBookieOpsStats()
      Specified by:
      getPendingBookieOpsStats in interface ManagedLedgerMXBean