public class ManagedLedgerFactoryMBeanImpl extends Object implements ManagedLedgerFactoryMXBean
| Constructor and Description |
|---|
ManagedLedgerFactoryMBeanImpl(ManagedLedgerFactoryImpl factory) |
| Modifier and Type | Method and Description |
|---|---|
double |
getCacheHitsRate()
Get the number of cache hits per second.
|
double |
getCacheHitsThroughput()
Get the amount of data is retrieved from the cache in byte/s.
|
long |
getCacheMaxSize()
Get the configured maximum cache size.
|
double |
getCacheMissesRate()
Get the number of cache misses per second.
|
double |
getCacheMissesThroughput()
Get the amount of data is retrieved from the bookkeeper in byte/s.
|
long |
getCacheUsedSize()
Get the size in byte used to store the entries payloads.
|
long |
getNumberOfCacheEvictions()
Get the number of cache evictions during the last minute.
|
int |
getNumberOfManagedLedgers()
Get the number of currently opened managed ledgers on the factory.
|
void |
recordCacheEviction() |
void |
recordCacheHit(long size) |
void |
recordCacheHits(int count,
long totalSize) |
void |
recordCacheMiss(int count,
long totalSize) |
void |
refreshStats(long period,
TimeUnit unit) |
public ManagedLedgerFactoryMBeanImpl(ManagedLedgerFactoryImpl factory) throws Exception
Exceptionpublic void refreshStats(long period,
TimeUnit unit)
public void recordCacheHit(long size)
public void recordCacheHits(int count,
long totalSize)
public void recordCacheMiss(int count,
long totalSize)
public void recordCacheEviction()
public int getNumberOfManagedLedgers()
ManagedLedgerFactoryMXBeangetNumberOfManagedLedgers in interface ManagedLedgerFactoryMXBeanpublic long getCacheUsedSize()
ManagedLedgerFactoryMXBeangetCacheUsedSize in interface ManagedLedgerFactoryMXBeanpublic long getCacheMaxSize()
ManagedLedgerFactoryMXBeangetCacheMaxSize in interface ManagedLedgerFactoryMXBeanpublic double getCacheHitsRate()
ManagedLedgerFactoryMXBeangetCacheHitsRate in interface ManagedLedgerFactoryMXBeanpublic double getCacheMissesRate()
ManagedLedgerFactoryMXBeangetCacheMissesRate in interface ManagedLedgerFactoryMXBeanpublic double getCacheHitsThroughput()
ManagedLedgerFactoryMXBeangetCacheHitsThroughput in interface ManagedLedgerFactoryMXBeanpublic double getCacheMissesThroughput()
ManagedLedgerFactoryMXBeangetCacheMissesThroughput in interface ManagedLedgerFactoryMXBeanpublic long getNumberOfCacheEvictions()
ManagedLedgerFactoryMXBeangetNumberOfCacheEvictions in interface ManagedLedgerFactoryMXBeanCopyright © 2017–2022 Apache Software Foundation. All rights reserved.