Class RequestStats


  • @StatsDoc(name="bookkeeper_server",
              category="server",
              help="Bookie request stats")
    public class RequestStats
    extends java.lang.Object
    A umbrella class for request related stats.
    • Field Detail

      • addsInProgress

        final java.util.concurrent.atomic.AtomicInteger addsInProgress
      • maxAddsInProgress

        final java.util.concurrent.atomic.AtomicInteger maxAddsInProgress
      • addsBlocked

        final java.util.concurrent.atomic.AtomicInteger addsBlocked
      • readsInProgress

        final java.util.concurrent.atomic.AtomicInteger readsInProgress
      • readsBlocked

        final java.util.concurrent.atomic.AtomicInteger readsBlocked
      • maxReadsInProgress

        final java.util.concurrent.atomic.AtomicInteger maxReadsInProgress
      • forceLedgerRequestStats

        @StatsDoc(name="FORCE_LEDGER_REQUEST",
                  help="request stats of ForceLedger on a bookie")
        final OpStatsLogger forceLedgerRequestStats
      • fenceReadRequestStats

        @StatsDoc(name="READ_ENTRY_FENCE_REQUEST",
                  help="request stats of FenceRead on a bookie")
        final OpStatsLogger fenceReadRequestStats
      • fenceReadWaitStats

        @StatsDoc(name="READ_ENTRY_FENCE_WAIT",
                  help="operation stats of FenceReadWait on a bookie",
                  parent="READ_ENTRY_FENCE_REQUEST")
        final OpStatsLogger fenceReadWaitStats
      • readEntrySchedulingDelayStats

        @StatsDoc(name="READ_ENTRY_SCHEDULING_DELAY",
                  help="operation stats of ReadEntry scheduling delays on a bookie")
        final OpStatsLogger readEntrySchedulingDelayStats
      • longPollPreWaitStats

        @StatsDoc(name="READ_ENTRY_LONG_POLL_PRE_WAIT",
                  help="operation stats of LongPoll Reads pre wait time on a bookie",
                  parent="READ_ENTRY_LONG_POLL_REQUEST")
        final OpStatsLogger longPollPreWaitStats
      • longPollWaitStats

        @StatsDoc(name="READ_ENTRY_LONG_POLL_WAIT",
                  help="operation stats of LongPoll Reads wait time on a bookie",
                  happensAfter="READ_ENTRY_LONG_POLL_PRE_WAIT",
                  parent="READ_ENTRY_LONG_POLL_REQUEST")
        final OpStatsLogger longPollWaitStats
      • longPollReadRequestStats

        @StatsDoc(name="READ_ENTRY_LONG_POLL_REQUEST",
                  help="request stats of LongPoll Reads on a bookie")
        final OpStatsLogger longPollReadRequestStats
      • readLastEntryNoEntryErrorCounter

        @StatsDoc(name="READ_LAST_ENTRY_NOENTRY_ERROR",
                  help="total NOENTRY errors of reading last entry on a bookie")
        final Counter readLastEntryNoEntryErrorCounter
      • getBookieInfoRequestStats

        @StatsDoc(name="GET_BOOKIE_INFO_REQUEST",
                  help="request stats of GetBookieInfo on a bookie")
        final OpStatsLogger getBookieInfoRequestStats
      • addEntryBlockedStats

        @StatsDoc(name="ADD_ENTRY_BLOCKED",
                  help="operation stats of AddEntry blocked on a bookie")
        final OpStatsLogger addEntryBlockedStats
      • readEntryBlockedStats

        @StatsDoc(name="READ_ENTRY_BLOCKED",
                  help="operation stats of ReadEntry blocked on a bookie")
        final OpStatsLogger readEntryBlockedStats
      • getListOfEntriesOfLedgerRequestStats

        @StatsDoc(name="GET_LIST_OF_ENTRIES_OF_LEDGER_REQUEST",
                  help="request stats of GetListOfEntriesOfLedger on a bookie")
        final OpStatsLogger getListOfEntriesOfLedgerRequestStats
      • getListOfEntriesOfLedgerStats

        @StatsDoc(name="GET_LIST_OF_ENTRIES_OF_LEDGER",
                  help="operation stats of GetListOfEntriesOfLedger",
                  parent="GET_LIST_OF_ENTRIES_OF_LEDGER_REQUEST")
        final OpStatsLogger getListOfEntriesOfLedgerStats
    • Constructor Detail

      • RequestStats

        public RequestStats​(StatsLogger statsLogger)
    • Method Detail

      • blockAddRequest

        void blockAddRequest()
      • unblockAddRequest

        void unblockAddRequest​(long delayNanos)
      • trackAddRequest

        void trackAddRequest()
      • untrackAddRequest

        void untrackAddRequest()
      • maxAddsInProgressCount

        int maxAddsInProgressCount()
      • blockReadRequest

        void blockReadRequest()
      • unblockReadRequest

        void unblockReadRequest​(long delayNanos)
      • trackReadRequest

        void trackReadRequest()
      • untrackReadRequest

        void untrackReadRequest()
      • maxReadsInProgressCount

        int maxReadsInProgressCount()
      • getAddsInProgress

        public java.util.concurrent.atomic.AtomicInteger getAddsInProgress()
      • getMaxAddsInProgress

        public java.util.concurrent.atomic.AtomicInteger getMaxAddsInProgress()
      • getAddsBlocked

        public java.util.concurrent.atomic.AtomicInteger getAddsBlocked()
      • getReadsInProgress

        public java.util.concurrent.atomic.AtomicInteger getReadsInProgress()
      • getReadsBlocked

        public java.util.concurrent.atomic.AtomicInteger getReadsBlocked()
      • getMaxReadsInProgress

        public java.util.concurrent.atomic.AtomicInteger getMaxReadsInProgress()
      • getWriteThreadQueuedLatency

        public OpStatsLogger getWriteThreadQueuedLatency()
      • getAddEntryRejectedCounter

        public Counter getAddEntryRejectedCounter()
      • getReadRequestStats

        public OpStatsLogger getReadRequestStats()
      • getReadEntryRejectedCounter

        public Counter getReadEntryRejectedCounter()
      • getForceLedgerStats

        public OpStatsLogger getForceLedgerStats()
      • getForceLedgerRequestStats

        public OpStatsLogger getForceLedgerRequestStats()
      • getFenceReadRequestStats

        public OpStatsLogger getFenceReadRequestStats()
      • getFenceReadEntryStats

        public OpStatsLogger getFenceReadEntryStats()
      • getFenceReadWaitStats

        public OpStatsLogger getFenceReadWaitStats()
      • getReadEntrySchedulingDelayStats

        public OpStatsLogger getReadEntrySchedulingDelayStats()
      • getLongPollPreWaitStats

        public OpStatsLogger getLongPollPreWaitStats()
      • getLongPollWaitStats

        public OpStatsLogger getLongPollWaitStats()
      • getLongPollReadStats

        public OpStatsLogger getLongPollReadStats()
      • getLongPollReadRequestStats

        public OpStatsLogger getLongPollReadRequestStats()
      • getReadLastEntryNoEntryErrorCounter

        public Counter getReadLastEntryNoEntryErrorCounter()
      • getWriteLacRequestStats

        public OpStatsLogger getWriteLacRequestStats()
      • getReadLacRequestStats

        public OpStatsLogger getReadLacRequestStats()
      • getGetBookieInfoRequestStats

        public OpStatsLogger getGetBookieInfoRequestStats()
      • getGetBookieInfoStats

        public OpStatsLogger getGetBookieInfoStats()
      • getChannelWriteStats

        public OpStatsLogger getChannelWriteStats()
      • getAddEntryBlockedStats

        public OpStatsLogger getAddEntryBlockedStats()
      • getReadEntryBlockedStats

        public OpStatsLogger getReadEntryBlockedStats()
      • getGetListOfEntriesOfLedgerRequestStats

        public OpStatsLogger getGetListOfEntriesOfLedgerRequestStats()
      • getGetListOfEntriesOfLedgerStats

        public OpStatsLogger getGetListOfEntriesOfLedgerStats()