Class ManagedLedgerMBeanImpl
java.lang.Object
org.apache.bookkeeper.mledger.impl.ManagedLedgerMBeanImpl
- All Implemented Interfaces:
ManagedLedgerMXBean
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long[]static final long[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddEntryLatencySample(long latency, TimeUnit unit) voidaddAddEntrySample(long size) voidaddLedgerAddEntryLatencySample(long latency, TimeUnit unit) voidaddLedgerSwitchLatencySample(long latency, TimeUnit unit) voidvoidaddReadEntriesSample(int count, long totalSize) voidvoidvoidvoidvoidvoidvoidvoiddoublelongdoublelong[]doublelongdoubledoublelong[]doublelong[]doublelong[]doublegetName()longdoublelongdoubledoublelonglonglongvoidvoidvoidrecordReadEntriesOpsCacheMisses(int count, long totalSize) voidrefreshStats(long period, TimeUnit unit) voidvoidvoidvoidvoidvoidvoidvoid
-
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
-
-
Method Details
-
refreshStats
-
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
-
addLedgerAddEntryLatencySample
-
addLedgerSwitchLatencySample
-
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
- Specified by:
getNamein interfaceManagedLedgerMXBean- Returns:
- the ManagedLedger name
-
getAddEntryMessagesRate
public double getAddEntryMessagesRate()- Specified by:
getAddEntryMessagesRatein interfaceManagedLedgerMXBean- Returns:
- the msg/s rate of messages added
-
getAddEntryBytesRate
public double getAddEntryBytesRate()- Specified by:
getAddEntryBytesRatein interfaceManagedLedgerMXBean- Returns:
- the bytes/s rate of messages added
-
getAddEntryWithReplicasBytesRate
public double getAddEntryWithReplicasBytesRate()- Specified by:
getAddEntryWithReplicasBytesRatein interfaceManagedLedgerMXBean- Returns:
- the bytes/s rate of messages added with replicas
-
getReadEntriesRate
public double getReadEntriesRate()- Specified by:
getReadEntriesRatein interfaceManagedLedgerMXBean- Returns:
- the msg/s rate of messages read
-
getReadEntriesBytesRate
public double getReadEntriesBytesRate()- Specified by:
getReadEntriesBytesRatein interfaceManagedLedgerMXBean- Returns:
- the bytes/s rate of messages read
-
getAddEntrySucceed
public long getAddEntrySucceed()- Specified by:
getAddEntrySucceedin interfaceManagedLedgerMXBean- Returns:
- the number of addEntry requests that succeeded
-
getAddEntryErrors
public long getAddEntryErrors()- Specified by:
getAddEntryErrorsin interfaceManagedLedgerMXBean- Returns:
- the number of addEntry requests that failed
-
getReadEntriesSucceeded
public long getReadEntriesSucceeded()- Specified by:
getReadEntriesSucceededin interfaceManagedLedgerMXBean- Returns:
- the number of readEntries requests that succeeded
-
getReadEntriesErrors
public long getReadEntriesErrors()- Specified by:
getReadEntriesErrorsin interfaceManagedLedgerMXBean- Returns:
- the number of readEntries requests that failed
-
getReadEntriesOpsCacheMissesRate
public double getReadEntriesOpsCacheMissesRate()- Specified by:
getReadEntriesOpsCacheMissesRatein interfaceManagedLedgerMXBean- Returns:
- the number of readEntries requests that cache miss Rate
-
getMarkDeleteRate
public double getMarkDeleteRate()- Specified by:
getMarkDeleteRatein interfaceManagedLedgerMXBean- Returns:
- the rate of mark-delete ops/s
-
getEntrySizeAverage
public double getEntrySizeAverage()- Specified by:
getEntrySizeAveragein interfaceManagedLedgerMXBean
-
getEntrySizeBuckets
public long[] getEntrySizeBuckets()- Specified by:
getEntrySizeBucketsin interfaceManagedLedgerMXBean
-
getAddEntryLatencyAverageUsec
public double getAddEntryLatencyAverageUsec()- Specified by:
getAddEntryLatencyAverageUsecin interfaceManagedLedgerMXBean
-
getAddEntryLatencyBuckets
public long[] getAddEntryLatencyBuckets()- Specified by:
getAddEntryLatencyBucketsin interfaceManagedLedgerMXBean
-
getLedgerAddEntryLatencyAverageUsec
public double getLedgerAddEntryLatencyAverageUsec()- Specified by:
getLedgerAddEntryLatencyAverageUsecin interfaceManagedLedgerMXBean
-
getLedgerAddEntryLatencyBuckets
public long[] getLedgerAddEntryLatencyBuckets()- Specified by:
getLedgerAddEntryLatencyBucketsin interfaceManagedLedgerMXBean
-
getLedgerSwitchLatencyBuckets
public long[] getLedgerSwitchLatencyBuckets()- Specified by:
getLedgerSwitchLatencyBucketsin interfaceManagedLedgerMXBean
-
getInternalAddEntryLatencyBuckets
- Specified by:
getInternalAddEntryLatencyBucketsin interfaceManagedLedgerMXBean
-
getInternalLedgerAddEntryLatencyBuckets
- Specified by:
getInternalLedgerAddEntryLatencyBucketsin interfaceManagedLedgerMXBean
-
getInternalEntrySizeBuckets
- Specified by:
getInternalEntrySizeBucketsin interfaceManagedLedgerMXBean
-
getLedgerSwitchLatencyAverageUsec
public double getLedgerSwitchLatencyAverageUsec()- Specified by:
getLedgerSwitchLatencyAverageUsecin interfaceManagedLedgerMXBean
-
getStoredMessagesSize
public long getStoredMessagesSize()- Specified by:
getStoredMessagesSizein interfaceManagedLedgerMXBean- Returns:
- the total size of the messages in active ledgers (accounting for the multiple copies stored)
-
getStoredMessagesLogicalSize
public long getStoredMessagesLogicalSize()- Specified by:
getStoredMessagesLogicalSizein interfaceManagedLedgerMXBean- Returns:
- the total size of the messages in active ledgers (without accounting for replicas)
-
getNumberOfMessagesInBacklog
public long getNumberOfMessagesInBacklog()- Specified by:
getNumberOfMessagesInBacklogin interfaceManagedLedgerMXBean- Returns:
- the number of backlog messages for all the consumers
-
getPendingBookieOpsStats
- Specified by:
getPendingBookieOpsStatsin interfaceManagedLedgerMXBean
-