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()
RemoteCacheClientStatisticsMXBean
getRemoteHits
in interface RemoteCacheClientStatisticsMXBean
public long getRemoteMisses()
RemoteCacheClientStatisticsMXBean
getRemoteMisses
in interface RemoteCacheClientStatisticsMXBean
public long getAverageRemoteReadTime()
RemoteCacheClientStatisticsMXBean
getAverageRemoteReadTime
in interface RemoteCacheClientStatisticsMXBean
public long getRemoteStores()
RemoteCacheClientStatisticsMXBean
getRemoteStores
in interface RemoteCacheClientStatisticsMXBean
public long getAverageRemoteStoreTime()
RemoteCacheClientStatisticsMXBean
getAverageRemoteStoreTime
in interface RemoteCacheClientStatisticsMXBean
public long getRemoteRemoves()
RemoteCacheClientStatisticsMXBean
getRemoteRemoves
in interface RemoteCacheClientStatisticsMXBean
public long getAverageRemoteRemovesTime()
RemoteCacheClientStatisticsMXBean
getAverageRemoteRemovesTime
in interface RemoteCacheClientStatisticsMXBean
public long getNearCacheHits()
RemoteCacheClientStatisticsMXBean
getNearCacheHits
in interface RemoteCacheClientStatisticsMXBean
public long getNearCacheMisses()
RemoteCacheClientStatisticsMXBean
getNearCacheMisses
in interface RemoteCacheClientStatisticsMXBean
public long getNearCacheInvalidations()
RemoteCacheClientStatisticsMXBean
getNearCacheInvalidations
in interface RemoteCacheClientStatisticsMXBean
public long getNearCacheSize()
RemoteCacheClientStatisticsMXBean
getNearCacheSize
in interface RemoteCacheClientStatisticsMXBean
public 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()
RemoteCacheClientStatisticsMXBean
resetStatistics
in interface RemoteCacheClientStatisticsMXBean
public long getTimeSinceReset()
RemoteCacheClientStatisticsMXBean
RemoteCacheClientStatisticsMXBean.resetStatistics()
getTimeSinceReset
in interface RemoteCacheClientStatisticsMXBean
public static ClientStatistics dummyClientStatistics(TimeService timeService)
ClientStatistics
instance to be used when the statistics aren't needed.ClientStatistics
instance.Copyright © 2021 JBoss by Red Hat. All rights reserved.