Class ManagedLedgerFactoryMBeanImpl
- java.lang.Object
-
- org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryMBeanImpl
-
- All Implemented Interfaces:
ManagedLedgerFactoryMXBean
public class ManagedLedgerFactoryMBeanImpl extends java.lang.Object implements ManagedLedgerFactoryMXBean
-
-
Constructor Summary
Constructors Constructor Description ManagedLedgerFactoryMBeanImpl(ManagedLedgerFactoryImpl factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetCacheHitsRate()Get the number of cache hits per second.doublegetCacheHitsThroughput()Get the amount of data is retrieved from the cache in byte/s.longgetCacheMaxSize()Get the configured maximum cache size.doublegetCacheMissesRate()Get the number of cache misses per second.doublegetCacheMissesThroughput()Get the amount of data is retrieved from the bookkeeper in byte/s.longgetCacheUsedSize()Get the size in byte used to store the entries payloads.longgetNumberOfCacheEvictions()Get the number of cache evictions during the last minute.intgetNumberOfManagedLedgers()Get the number of currently opened managed ledgers on the factory.voidrecordCacheEviction()voidrecordCacheHit(long size)voidrecordCacheHits(int count, long totalSize)voidrecordCacheMiss(int count, long totalSize)voidrefreshStats(long period, java.util.concurrent.TimeUnit unit)
-
-
-
Constructor Detail
-
ManagedLedgerFactoryMBeanImpl
public ManagedLedgerFactoryMBeanImpl(ManagedLedgerFactoryImpl factory) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
refreshStats
public void refreshStats(long period, java.util.concurrent.TimeUnit unit)
-
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()
-
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
-
-