public final class ClientStatistics extends Object implements RemoteCacheClientStatisticsMXBean
| Modifier and Type | Method and Description |
|---|---|
void |
dataRead(boolean foundValue,
long startTimeNanoSeconds,
int count) |
void |
dataRemove(long startTimeNanoSeconds,
int count) |
void |
dataStore(long startTimeNanoSeconds,
int count) |
static ClientStatistics |
dummyClientStatistics(TimeService timeService)
It returns a
ClientStatistics instance to be used when the statistics aren't needed. |
long |
getAverageRemoteReadTime()
Returns the average read time, in milliseconds, for a remote cache.
|
long |
getAverageRemoteRemovesTime()
Returns the average time, in milliseconds, for remove operations in a remote cache.
|
long |
getAverageRemoteStoreTime()
Returns the average store time, in milliseconds, for a remote cache.
|
long |
getNearCacheHits()
Returns the number of near-cache hits.
|
long |
getNearCacheInvalidations()
Returns the number of near-cache invalidations.
|
long |
getNearCacheMisses()
Returns the number of near-cache misses.
|
long |
getNearCacheSize()
Returns the number of entries currently stored in the near-cache.
|
long |
getRemoteHits()
Returns the number of hits for a remote cache.
|
long |
getRemoteMisses()
Returns the number of misses for a remote cache.
|
long |
getRemoteRemoves()
Returns the number of removes for a remote cache.
|
long |
getRemoteStores()
Returns the number of remote cache stores (put, replace) that the client applied.
|
long |
getTimeSinceReset()
Returns the time, in seconds, since the last reset.
|
void |
incrementNearCacheHits() |
void |
incrementNearCacheInvalidations() |
void |
incrementNearCacheMisses() |
boolean |
isEnabled() |
void |
resetStatistics()
Resets statistics.
|
long |
time() |
public boolean isEnabled()
public long getRemoteHits()
RemoteCacheClientStatisticsMXBeangetRemoteHits in interface RemoteCacheClientStatisticsMXBeanpublic long getRemoteMisses()
RemoteCacheClientStatisticsMXBeangetRemoteMisses in interface RemoteCacheClientStatisticsMXBeanpublic long getAverageRemoteReadTime()
RemoteCacheClientStatisticsMXBeangetAverageRemoteReadTime in interface RemoteCacheClientStatisticsMXBeanpublic long getRemoteStores()
RemoteCacheClientStatisticsMXBeangetRemoteStores in interface RemoteCacheClientStatisticsMXBeanpublic long getAverageRemoteStoreTime()
RemoteCacheClientStatisticsMXBeangetAverageRemoteStoreTime in interface RemoteCacheClientStatisticsMXBeanpublic long getRemoteRemoves()
RemoteCacheClientStatisticsMXBeangetRemoteRemoves in interface RemoteCacheClientStatisticsMXBeanpublic long getAverageRemoteRemovesTime()
RemoteCacheClientStatisticsMXBeangetAverageRemoteRemovesTime in interface RemoteCacheClientStatisticsMXBeanpublic long getNearCacheHits()
RemoteCacheClientStatisticsMXBeangetNearCacheHits in interface RemoteCacheClientStatisticsMXBeanpublic long getNearCacheMisses()
RemoteCacheClientStatisticsMXBeangetNearCacheMisses in interface RemoteCacheClientStatisticsMXBeanpublic long getNearCacheInvalidations()
RemoteCacheClientStatisticsMXBeangetNearCacheInvalidations in interface RemoteCacheClientStatisticsMXBeanpublic long getNearCacheSize()
RemoteCacheClientStatisticsMXBeangetNearCacheSize in interface RemoteCacheClientStatisticsMXBeanpublic long time()
public void dataRead(boolean foundValue,
long startTimeNanoSeconds,
int count)
public void dataStore(long startTimeNanoSeconds,
int count)
public void dataRemove(long startTimeNanoSeconds,
int count)
public void incrementNearCacheMisses()
public void incrementNearCacheHits()
public void incrementNearCacheInvalidations()
public void resetStatistics()
RemoteCacheClientStatisticsMXBeanresetStatistics in interface RemoteCacheClientStatisticsMXBeanpublic long getTimeSinceReset()
RemoteCacheClientStatisticsMXBeanRemoteCacheClientStatisticsMXBean.resetStatistics()getTimeSinceReset in interface RemoteCacheClientStatisticsMXBeanpublic static ClientStatistics dummyClientStatistics(TimeService timeService)
ClientStatistics instance to be used when the statistics aren't needed.ClientStatistics instance.Copyright © 2022 JBoss by Red Hat. All rights reserved.