Class ClientStatistics
java.lang.Object
org.infinispan.client.hotrod.impl.ClientStatistics
- All Implemented Interfaces:
RemoteCacheClientStatisticsMXBean
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 aClientStatistics
instance to be used when the statistics aren't needed.long
Returns the average read time, in milliseconds, for a remote cache.long
Returns the average read time, in nanoseconds, for a remote cache.long
Returns the average time, in milliseconds, for remove operations in a remote cache.long
Returns the average time, in nanoseconds, for remove operations in a remote cache.long
Returns the average store time, in milliseconds, for a remote cache.long
Returns the average store time, in nanoseconds, for a remote cache.long
Returns the number of near-cache hits.long
Returns the number of near-cache invalidations.long
Returns the number of near-cache misses.long
Returns the number of entries currently stored in the near-cache.long
Returns the number of hits for a remote cache.long
Returns the number of misses for a remote cache.long
Returns the number of removes for a remote cache.long
Returns the number of remote cache stores (put, replace) that the client applied.long
Returns the time, in seconds, since the last reset.void
void
void
boolean
void
Resets statistics.long
time()
-
Method Details
-
isEnabled
public boolean isEnabled() -
getRemoteHits
public long getRemoteHits()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the number of hits for a remote cache.- Specified by:
getRemoteHits
in interfaceRemoteCacheClientStatisticsMXBean
-
getRemoteMisses
public long getRemoteMisses()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the number of misses for a remote cache.- Specified by:
getRemoteMisses
in interfaceRemoteCacheClientStatisticsMXBean
-
getAverageRemoteReadTime
public long getAverageRemoteReadTime()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the average read time, in milliseconds, for a remote cache.- Specified by:
getAverageRemoteReadTime
in interfaceRemoteCacheClientStatisticsMXBean
-
getAverageRemoteReadTimeNanos
public long getAverageRemoteReadTimeNanos()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the average read time, in nanoseconds, for a remote cache.- Specified by:
getAverageRemoteReadTimeNanos
in interfaceRemoteCacheClientStatisticsMXBean
-
getRemoteStores
public long getRemoteStores()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the number of remote cache stores (put, replace) that the client applied. Failed conditional operations do not increase the count of entries in the remote cache. Put operations always increase the count even if an operation replaces an equal value.- Specified by:
getRemoteStores
in interfaceRemoteCacheClientStatisticsMXBean
-
getAverageRemoteStoreTime
public long getAverageRemoteStoreTime()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the average store time, in milliseconds, for a remote cache.- Specified by:
getAverageRemoteStoreTime
in interfaceRemoteCacheClientStatisticsMXBean
-
getAverageRemoteStoreTimeNanos
public long getAverageRemoteStoreTimeNanos()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the average store time, in nanoseconds, for a remote cache.- Specified by:
getAverageRemoteStoreTimeNanos
in interfaceRemoteCacheClientStatisticsMXBean
-
getRemoteRemoves
public long getRemoteRemoves()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the number of removes for a remote cache.- Specified by:
getRemoteRemoves
in interfaceRemoteCacheClientStatisticsMXBean
-
getAverageRemoteRemovesTime
public long getAverageRemoteRemovesTime()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the average time, in milliseconds, for remove operations in a remote cache.- Specified by:
getAverageRemoteRemovesTime
in interfaceRemoteCacheClientStatisticsMXBean
-
getAverageRemoteRemovesTimeNanos
public long getAverageRemoteRemovesTimeNanos()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the average time, in nanoseconds, for remove operations in a remote cache.- Specified by:
getAverageRemoteRemovesTimeNanos
in interfaceRemoteCacheClientStatisticsMXBean
-
getNearCacheHits
public long getNearCacheHits()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the number of near-cache hits. Returns a value of 0 if near-caching is disabled.- Specified by:
getNearCacheHits
in interfaceRemoteCacheClientStatisticsMXBean
-
getNearCacheMisses
public long getNearCacheMisses()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the number of near-cache misses. Returns a value of 0 if near-caching is disabled.- Specified by:
getNearCacheMisses
in interfaceRemoteCacheClientStatisticsMXBean
-
getNearCacheInvalidations
public long getNearCacheInvalidations()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the number of near-cache invalidations. Returns a value of 0 if near-caching is disabled.- Specified by:
getNearCacheInvalidations
in interfaceRemoteCacheClientStatisticsMXBean
-
getNearCacheSize
public long getNearCacheSize()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the number of entries currently stored in the near-cache. Returns a value of 0 if near-caching is disabled.- Specified by:
getNearCacheSize
in interfaceRemoteCacheClientStatisticsMXBean
-
time
public long time() -
dataRead
public void dataRead(boolean foundValue, long startTimeNanoSeconds, int count) -
dataStore
public void dataStore(long startTimeNanoSeconds, int count) -
dataRemove
public void dataRemove(long startTimeNanoSeconds, int count) -
incrementNearCacheMisses
public void incrementNearCacheMisses() -
incrementNearCacheHits
public void incrementNearCacheHits() -
incrementNearCacheInvalidations
public void incrementNearCacheInvalidations() -
resetStatistics
public void resetStatistics()Description copied from interface:RemoteCacheClientStatisticsMXBean
Resets statistics.- Specified by:
resetStatistics
in interfaceRemoteCacheClientStatisticsMXBean
-
getTimeSinceReset
public long getTimeSinceReset()Description copied from interface:RemoteCacheClientStatisticsMXBean
Returns the time, in seconds, since the last reset. SeeRemoteCacheClientStatisticsMXBean.resetStatistics()
- Specified by:
getTimeSinceReset
in interfaceRemoteCacheClientStatisticsMXBean
-
dummyClientStatistics
It returns aClientStatistics
instance to be used when the statistics aren't needed.- Returns:
- a disabled
ClientStatistics
instance.
-