Class ManagedLedgerFactoryMBeanImpl
java.lang.Object
org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryMBeanImpl
- All Implemented Interfaces:
ManagedLedgerFactoryMXBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongCurrent number of entries in the cache.longCumulative number of entries evicted from the cache.doubleGet the number of cache hits per second.doubleGet the amount of data is retrieved from the cache in byte/s.longCumulative number of entries inserted into the cache.longGet the configured maximum cache size.doubleGet the number of cache misses per second.doubleGet the amount of data is retrieved from the bookkeeper in byte/s.longGet the size in byte used to store the entries payloads.longGet the number of cache evictions during the last minute.intGet the number of currently opened managed ledgers on the factory.voidvoidrecordCacheHit(long size) voidrecordCacheHits(int count, long totalSize) voidvoidrecordCacheMiss(int count, long totalSize) voidrecordNumberOfCacheEntriesEvicted(int count) voidrefreshStats(long period, TimeUnit unit)
-
Constructor Details
-
ManagedLedgerFactoryMBeanImpl
- Throws:
Exception
-
-
Method Details
-
refreshStats
-
recordCacheHit
public void recordCacheHit(long size) -
recordCacheHits
public void recordCacheHits(int count, long totalSize) -
recordCacheMiss
public void recordCacheMiss(int count, long totalSize) -
recordCacheEviction
public void recordCacheEviction() -
recordCacheInsertion
public void recordCacheInsertion() -
recordNumberOfCacheEntriesEvicted
public void recordNumberOfCacheEntriesEvicted(int count) -
getNumberOfManagedLedgers
public int getNumberOfManagedLedgers()Description copied from interface:ManagedLedgerFactoryMXBeanGet the number of currently opened managed ledgers on the factory.- Specified by:
getNumberOfManagedLedgersin interfaceManagedLedgerFactoryMXBean
-
getCacheUsedSize
public long getCacheUsedSize()Description copied from interface:ManagedLedgerFactoryMXBeanGet the size in byte used to store the entries payloads.- Specified by:
getCacheUsedSizein interfaceManagedLedgerFactoryMXBean
-
getCacheMaxSize
public long getCacheMaxSize()Description copied from interface:ManagedLedgerFactoryMXBeanGet the configured maximum cache size.- Specified by:
getCacheMaxSizein interfaceManagedLedgerFactoryMXBean
-
getCacheHitsRate
public double getCacheHitsRate()Description copied from interface:ManagedLedgerFactoryMXBeanGet the number of cache hits per second.- Specified by:
getCacheHitsRatein interfaceManagedLedgerFactoryMXBean
-
getCacheMissesRate
public double getCacheMissesRate()Description copied from interface:ManagedLedgerFactoryMXBeanGet the number of cache misses per second.- Specified by:
getCacheMissesRatein interfaceManagedLedgerFactoryMXBean
-
getCacheHitsThroughput
public double getCacheHitsThroughput()Description copied from interface:ManagedLedgerFactoryMXBeanGet the amount of data is retrieved from the cache in byte/s.- Specified by:
getCacheHitsThroughputin interfaceManagedLedgerFactoryMXBean
-
getCacheMissesThroughput
public double getCacheMissesThroughput()Description copied from interface:ManagedLedgerFactoryMXBeanGet the amount of data is retrieved from the bookkeeper in byte/s.- Specified by:
getCacheMissesThroughputin interfaceManagedLedgerFactoryMXBean
-
getNumberOfCacheEvictions
public long getNumberOfCacheEvictions()Description copied from interface:ManagedLedgerFactoryMXBeanGet the number of cache evictions during the last minute.- Specified by:
getNumberOfCacheEvictionsin interfaceManagedLedgerFactoryMXBean
-
getCacheInsertedEntriesCount
public long getCacheInsertedEntriesCount()Description copied from interface:ManagedLedgerFactoryMXBeanCumulative number of entries inserted into the cache.- Specified by:
getCacheInsertedEntriesCountin interfaceManagedLedgerFactoryMXBean
-
getCacheEvictedEntriesCount
public long getCacheEvictedEntriesCount()Description copied from interface:ManagedLedgerFactoryMXBeanCumulative number of entries evicted from the cache.- Specified by:
getCacheEvictedEntriesCountin interfaceManagedLedgerFactoryMXBean
-
getCacheEntriesCount
public long getCacheEntriesCount()Description copied from interface:ManagedLedgerFactoryMXBeanCurrent number of entries in the cache.- Specified by:
getCacheEntriesCountin interfaceManagedLedgerFactoryMXBean
-