Class CacheSamplerImpl
- java.lang.Object
-
- net.sf.ehcache.management.sampled.CacheSamplerImpl
-
- All Implemented Interfaces:
CacheConfigurationListener,CacheSampler,LegacyCacheStatistics
public class CacheSamplerImpl extends java.lang.Object implements CacheSampler, CacheConfigurationListener
An implementation ofCacheSampler- Author:
- Abhishek Sanoujam, byoukste There is stupid here -- *Sample() is the same as *Rate()
-
-
Constructor Summary
Constructors Constructor Description CacheSamplerImpl(Ehcache cache)Constructor accepting the backingEhcache
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidderegistered(CacheConfiguration config)Indicates that this listener was removed from the given configurationvoiddiskCapacityChanged(int oldCapacity, int newCapacity)Indicates a change in the configurations disk store capacityvoiddispose()Method used to dispose this statistics.voidflush()Flushes all cache items from memory to the disk store, and from the DiskStore to disk.longgetAverageGetTime()Gets the average get time.longgetAverageGetTimeNanos()Average time in nanoseconds taken to get an element from the cache.longgetAverageGetTimeNanosMostRecentSample()Get most recent value for average time taken for get() operation in the cache.SampledRateCountergetAverageGetTimeSample()Get theSampledRateCounterfor average time taken for get() operation in the cache.longgetAverageSearchTime()Gets the average search time.longgetAverageSearchTimeNanos()Get the average search execution time for searches finishing within the last sample period.SampledRateCountergetAverageSearchTimeSample()Get theSampledRateCounterfor average search execution time for searches finishing within the last sample period.longgetCacheClusterOfflineCount()Count of cluster offline events for this node.longgetCacheClusterOfflineMostRecentSample()Gets the cache cluster offline most recent sample.SampledCountergetCacheClusterOfflineSample()Get theSampledCounterfor offline cache cluster events.longgetCacheClusterOnlineCount()Count of cluster online events for this node.longgetCacheClusterOnlineMostRecentSample()Gets the cache cluster online most recent sample.SampledCountergetCacheClusterOnlineSample()Get theSampledCounterfor online cache cluster events.longgetCacheClusterRejoinCount()Count of cluster rejoin events for this node.longgetCacheClusterRejoinMostRecentSample()Gets the cache cluster rejoin most recent sample.SampledCountergetCacheClusterRejoinSample()Get theSampledCounterfor rejoin cache cluster events.longgetCacheElementEvictedMostRecentSample()Get most recent value element evicted from cache.SampledCountergetCacheElementEvictedSample()Get theSampledCounterelement evicted from cache.longgetCacheElementExpiredMostRecentSample()Get most recent value element expired from cache.SampledCountergetCacheElementExpiredSample()Get theSampledCounterelement expired from cache.longgetCacheElementPutMostRecentSample()Get most recent value element puts in the cache.SampledCountergetCacheElementPutSample()Get theSampledCounterelement puts in the cache.longgetCacheElementRemovedMostRecentSample()Get most recent value element removed from cache.SampledCountergetCacheElementRemovedSample()Get theSampledCounterelement removed from cache.longgetCacheElementUpdatedMostRecentSample()Get most recent value element updates , i.e.SampledCountergetCacheElementUpdatedSample()Get theSampledCounterelement updates , i.e.longgetCacheEvictionRate()Gets the cache eviction rate.longgetCacheExpirationRate()Gets the cache expiration rate.longgetCacheHitCount()The number of times a requested item was found in the cache.longgetCacheHitInMemoryMostRecentSample()Get most recent value for in-memory cache hit.SampledCountergetCacheHitInMemorySample()Get theSampledCounterfor in-memory cache hit.longgetCacheHitMostRecentSample()Get most recent value for cache hit.longgetCacheHitOffHeapMostRecentSample()Get most recent value for off-heap cache hit.SampledCountergetCacheHitOffHeapSample()Get theSampledCounterfor off-heap cache hit.longgetCacheHitOnDiskMostRecentSample()Get most recent value for on-disk cache hit.SampledCountergetCacheHitOnDiskSample()Get theSampledCounterfor on-disk cache hit.longgetCacheHitRate()Gets the cache hit rate.intgetCacheHitRatio()The ratio of hits to accesses (hits + misses).intgetCacheHitRatioMostRecentSample()Get most recent value for cache hit ratio.SampledCountergetCacheHitRatioSample()Get theSampledCounterfor cache hit ratio.SampledCountergetCacheHitSample()Get theSampledCounterfor cache hit.longgetCacheInMemoryHitRate()Gets the cache in memory hit rate.longgetCacheInMemoryMissRate()Gets the cache in memory miss rate.longgetCacheMissCount()Number of times a requested element was not found in the cache.longgetCacheMissCountExpired()Gets the cache miss count expired.longgetCacheMissExpiredMostRecentSample()Get most recent value for cache miss as result of the element getting expired.SampledCountergetCacheMissExpiredSample()Get theSampledCounterfor cache miss as result of the element getting expired.longgetCacheMissInMemoryMostRecentSample()Get most recent value for in-memory cache miss.SampledCountergetCacheMissInMemorySample()Get theSampledCounterfor in-memory cache miss.longgetCacheMissMostRecentSample()Get most recent value for cache miss.longgetCacheMissNotFoundMostRecentSample()Get most recent value for cache miss as result of the element not found in cache.SampledCountergetCacheMissNotFoundSample()Get theSampledCounterfor cache miss as result of the element not found in cache.longgetCacheMissOffHeapMostRecentSample()Get most recent value for off-heap cache miss.SampledCountergetCacheMissOffHeapSample()Get theSampledCounterfor off-heap cache miss.longgetCacheMissOnDiskMostRecentSample()Get most recent value for on-disk cache miss.SampledCountergetCacheMissOnDiskSample()Get theSampledCounterfor on-disk cache miss.longgetCacheMissRate()Gets the cache miss rate.SampledCountergetCacheMissSample()Get theSampledCounterfor cache miss.java.lang.StringgetCacheName()Gets the cache name.longgetCacheOffHeapHitRate()Gets the cache off heap hit rate.longgetCacheOffHeapMissRate()Gets the cache off heap miss rate.longgetCacheOnDiskHitRate()Gets the cache on disk hit rate.longgetCacheOnDiskMissRate()Gets the cache on disk miss rate.longgetCachePutRate()Gets the cache put rate.longgetCacheRemoveRate()Gets the cache remove rate.longgetCacheSearchRate()Gets the cache search rate.longgetCacheUpdateRate()Gets the cache update rate.longgetCacheXaCommitsMostRecentSample()Get most recent value of XA commits.SampledCountergetCacheXaCommitsSample()Get theSampledCounterfor number of XA Transaction commits that have completed in the interval.longgetCacheXaRollbacksMostRecentSample()Get most recent value of XA rollbacks.SampledCountergetCacheXaRollbacksSample()Get theSampledCounterfor number of XA Transaction rollbacks that have completed in the interval.longgetDiskExpiryThreadIntervalSeconds()Configuration property accessorlonggetEvictedCount()Number of elements evicted from the cache.longgetExpiredCount()Number of elements expired since creation or last clear.booleangetHasWriteBehindWriter()Is there a registered Write-behind CacheWriter.longgetInMemoryHitCount()Number of times a requested item was found in the Memory Store.longgetInMemoryMissCount()Number of times a requested item was not found in the Memory Store.longgetInMemorySize()Number of elements in the MemoryStore.longgetLocalDiskSize()Number of entries in the DiskStore.longgetLocalDiskSizeInBytes()Number of of bytes used by entries in the DiskStore.SampledCountergetLocalDiskSizeInBytesSample()Get theSampledCounterfor local disk size in bytes.SampledCountergetLocalDiskSizeSample()Get theSampledCounterfor local disk size.longgetLocalHeapSize()Number of entries in the MemoryStore.longgetLocalHeapSizeInBytes()Number of of bytes used by entries in the MemoryStore.SampledCountergetLocalHeapSizeInBytesSample()Get theSampledCounterfor local heap size in bytes.SampledCountergetLocalHeapSizeSample()Get theSampledCounterfor local heap size.longgetLocalOffHeapSize()Number of entries in the off-heap store.longgetLocalOffHeapSizeInBytes()Number of of bytes used by entries in the off-heap store.SampledCountergetLocalOffHeapSizeInBytesSample()Get theSampledCounterfor local offheap size in bytes.SampledCountergetLocalOffHeapSizeSample()Get theSampledCounterfor local offheap size.longgetMaxBytesLocalDisk()Configuration property accessor.java.lang.StringgetMaxBytesLocalDiskAsString()Configuration property accessor.longgetMaxBytesLocalHeap()Configuration property accessor.java.lang.StringgetMaxBytesLocalHeapAsString()Configuration property accessor.longgetMaxBytesLocalOffHeap()Configuration property accessor.java.lang.StringgetMaxBytesLocalOffHeapAsString()Configuration property accessor.intgetMaxElementsOnDisk()Configuration property accessor.longgetMaxEntriesInCache()Configuration property accessor.longgetMaxEntriesLocalDisk()Configuration property accessor.longgetMaxEntriesLocalHeap()Configuration property accessor.java.lang.LonggetMaxGetTimeNanos()Return maximum time taken for a get operation in the cache in nanoseconds.java.lang.StringgetMemoryStoreEvictionPolicy()Configuration property accessor.java.lang.LonggetMinGetTimeNanos()Return minimum time taken for a get operation in the cache in nanoseconds.longgetMostRecentRejoinTimeStampMillis()Get the timestamp in nanos of the last rejoin.SampledCountergetMostRecentRejoinTimestampMillisSample()Get theSampledCounterfor last rejoin timestamp.longgetNonStopFailureCount()Gets the non stop failure count.longgetNonStopFailureMostRecentSample()Gets the non stop failure most recent sample.longgetNonStopFailureRate()Gets the non stop failure most recent sample.SampledCountergetNonStopFailureSample()Gets the nonstop failure sample.longgetNonStopRejoinTimeoutCount()Gets the non stop rejoin timeout count.longgetNonStopRejoinTimeoutMostRecentSample()Gets the non stop rejoin most recent sample.longgetNonStopRejoinTimeoutRate()Gets the non stop rejoin most recent sample.SampledCountergetNonStopRejoinTimeoutSample()Gets the nonstop rejoin sample.longgetNonStopSuccessCount()Gets the non stop success count.longgetNonStopSuccessMostRecentSample()Gets the non stop success most recent sample.longgetNonStopSuccessRate()Gets the non stop success most recent sample.SampledCountergetNonStopSuccessSample()Gets the nonstop success sample.longgetNonStopTimeoutCount()Gets the non stop timeout count.longgetNonStopTimeoutMostRecentSample()Gets the non stop timeout most recent sample.longgetNonStopTimeoutRate()Gets the non stop timeout most recent sample.intgetNonstopTimeoutRatio()Get the ratio of nonstop timeouts+rejoin timeouts to operationsSampledCountergetNonStopTimeoutSample()Gets the nonstop timeout sample.longgetOffHeapHitCount()Number of times a requested item was found in the off-heap store.longgetOffHeapMissCount()Number of times a requested item was not found in the off-heap store.longgetOffHeapSize()Deprecated.longgetOnDiskHitCount()Number of times a requested item was found in the Disk Store.longgetOnDiskMissCount()Number of times a requested item was not found in the Disk Store.longgetOnDiskSize()Deprecated.java.lang.StringgetPersistenceStrategy()getPersistenceStrategyjava.lang.StringgetPinnedToStore()Configuration property accessor.longgetPutCount()Number of puts that has happened in the cache.longgetPutIfAbsentMissCount()Number of putIfAbsent operations that missed.longgetPutIfAbsentMissRate()Rate of putIfAbsent operations that missed.SampledCountergetPutIfAbsentMissSample()Gets the putIfAbsent miss samplelonggetPutIfAbsentSuccessCount()Number of putIfAbsent operations that succeeded.longgetPutIfAbsentSuccessRate()Rate of putIfAbsent operations that succeeded.SampledCountergetPutIfAbsentSuccessSample()Gets the putIfAbsent success sampleSampledCountergetRemoteSizeSample()Get theSampledCounterfor remote size.longgetRemovedCount()Number of elements removed since creation or last clear.longgetRemoveElementMissCount()Number of removeElement operations that missed.longgetRemoveElementMissRate()Rate of removeElement operations that missed.SampledCountergetRemoveElementMissSample()Gets the removeElement miss samplelonggetRemoveElementSuccessCount()Number of removeElement operations that succeededlonggetRemoveElementSuccessRate()Rate of removeElement operations that succeededSampledCountergetRemoveElementSuccessSample()Gets the removeElement success samplelonggetReplaceOneArgMissCount()Number of one arg replace operations that missed.longgetReplaceOneArgMissRate()Rate of one arg replace operations that missed.SampledCountergetReplaceOneArgMissSample()Gets the one arg replace miss samplelonggetReplaceOneArgSuccessCount()Number of one arg replace operations that succeeded.longgetReplaceOneArgSuccessRate()Rate of one arg replace operations that succeeded.SampledCountergetReplaceOneArgSuccessSample()Gets the one arg replace success samplelonggetReplaceTwoArgMissCount()Number of two arg replace operations that missed.longgetReplaceTwoArgMissRate()Rate of two arg replace operations that missed.SampledCountergetReplaceTwoArgMissSample()Gets the two arg replace miss samplelonggetReplaceTwoArgSuccessCount()Number of two arg replace operations that succeeded.longgetReplaceTwoArgSuccessRate()Rate of two arg replace operations that succeeded.SampledCountergetReplaceTwoArgSuccessSample()Gets the two arg replace success samplebooleangetSearchable()Is the cache configured for search.java.util.Map<java.lang.String,java.lang.String>getSearchAttributes()Get the declared search attributes and their type names.longgetSearchesPerSecond()Get the number of searches that have finished execution in the last second.SampledCountergetSearchesPerSecondSample()Get theSampledCounterfor number of searches that have finished in the interval.longgetSize()Size of the cache based on current accuracy settings.SampledCountergetSizeSample()Get theSampledCounterfor cache size.java.lang.StringgetStatus()Gets the status attribute of the Cache.java.lang.StringgetTerracottaConsistency()Returns a textual description of a Terracotta-clustered cache's consistency mode.longgetTimeToIdleSeconds()Configuration property accessor.longgetTimeToLiveSeconds()Configuration property accessor.booleangetTransactional()Is the cache a transactional one.longgetTransactionCommitRate()Gets the transaction commit rate.longgetTransactionRollbackRate()Gets the transaction rollback rate.longgetUpdateCount()Number of updates that as happened in the cache.intgetWriterConcurrency()Returns the number of configured write-behind queues/threads.intgetWriterMaxQueueSize()Returns the maximum size of any write-behind queues.longgetWriterQueueLength()Returns the total length of all write-behind queues for this cache.SampledCountergetWriterQueueLengthSample()Get theSampledCounterfor writer queue length.longgetXaCommitCount()Return the Cache's XAResource commit calls count.longgetXaRecoveredCount()Return the Cache's XAResource recovered XIDs count.longgetXaRollbackCount()Return the Cache's XAResource rollback calls count.booleanisClusterBulkLoadEnabled()Is the cache in bulk-load mode cluster-wide?.booleanisDiskPersistent()Configuration property accessor.booleanisEnabled()Is the cache enabled?.booleanisEternal()Configuration property accessor.booleanisLocalHeapCountBased()Check if the local heap is measured with ARC or in element count.booleanisLoggingEnabled()Configuration property accessor.booleanisNodeBulkLoadEnabled()Is the cache in bulk-load mode locally?.booleanisOverflowToDisk()Configuration property accessor.booleanisOverflowToOffHeap()isOverflowToOffHeapbooleanisPinned()Configuration property accessor.booleanisTerracottaClustered()Is the cache configured with Terracotta clustering?.voidloggingChanged(boolean oldValue, boolean newValue)Indicates a change in the configuration for enable/disable loggingvoidmaxBytesLocalDiskChanged(long oldValue, long newValue)Indicates a change in the configuration for maxBytesLocalDisk settingvoidmaxBytesLocalHeapChanged(long oldValue, long newValue)Indicates a change in the configuration for maxBytesLocalHeap settingvoidmaxEntriesInCacheChanged(long oldCapacity, long newCapacity)Indicates a change in the configuration for maxEntriesInCache settingvoidmemoryCapacityChanged(int oldCapacity, int newCapacity)Indicates a change in the configurations memory store capacityvoidregistered(CacheConfiguration config)Indicates that this listener was registered with the given configurationvoidremoveAll()Removes all cached items.voidsetDiskExpiryThreadIntervalSeconds(long seconds)setDiskExpiryThreadIntervalSeconds.voidsetDiskPersistent(boolean diskPersistent)setDiskPersistent.voidsetEnabled(boolean enabled)Enabled/disable the cache.voidsetEternal(boolean eternal)setEternal.voidsetLoggingEnabled(boolean enabled)setLoggingEnabled.voidsetMaxBytesLocalDisk(long maxBytes)setMaxBytesLocalDisk.voidsetMaxBytesLocalDiskAsString(java.lang.String maxBytes)setMaxBytesLocalDisk.voidsetMaxBytesLocalHeap(long maxBytes)setMaxBytesLocalHeap.voidsetMaxBytesLocalHeapAsString(java.lang.String maxBytes)setMaxBytesLocalHeap.voidsetMaxElementsOnDisk(int maxElements)setMaxElementsOnDisk.voidsetMaxEntriesInCache(long maxEntries)setMaxEntriesInCache.voidsetMaxEntriesLocalDisk(long maxEntries)setMaxEntriesLocalDisk.voidsetMaxEntriesLocalHeap(long maxEntries)setMaxEntriesLocalHeap.voidsetMemoryStoreEvictionPolicy(java.lang.String evictionPolicy)setMemoryStoreEvictionPolicy.voidsetNodeBulkLoadEnabled(boolean bulkLoadEnabled)Enabled/disable bulk-load mode for this node.voidsetOverflowToDisk(boolean overflowToDisk)setOverflowToDisk.voidsetTimeToIdleSeconds(long tti)setTimeToIdleSeconds.voidsetTimeToLiveSeconds(long ttl)setTimeToLiveSeconds.voidtimeToIdleChanged(long oldTimeToIdle, long newTimeToIdle)Indicates a change in the configurations time to idlevoidtimeToLiveChanged(long oldTimeToLive, long newTimeToLive)Indicates a change in the configurations time to live
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Is the cache enabled?.- Specified by:
isEnabledin interfaceCacheSampler- Returns:
- true, if is enabled
-
setEnabled
public void setEnabled(boolean enabled)
Enabled/disable the cache.- Specified by:
setEnabledin interfaceCacheSampler- Parameters:
enabled- the new enabled
-
isClusterBulkLoadEnabled
public boolean isClusterBulkLoadEnabled()
Is the cache in bulk-load mode cluster-wide?.- Specified by:
isClusterBulkLoadEnabledin interfaceCacheSampler- Returns:
- true, if is cluster bulk load enabled
-
isNodeBulkLoadEnabled
public boolean isNodeBulkLoadEnabled()
Is the cache in bulk-load mode locally?.- Specified by:
isNodeBulkLoadEnabledin interfaceCacheSampler- Returns:
- true, if is node bulk load enabled
-
setNodeBulkLoadEnabled
public void setNodeBulkLoadEnabled(boolean bulkLoadEnabled)
Enabled/disable bulk-load mode for this node.- Specified by:
setNodeBulkLoadEnabledin interfaceCacheSampler- Parameters:
bulkLoadEnabled- the new node bulk load enabled
-
flush
public void flush()
Flushes all cache items from memory to the disk store, and from the DiskStore to disk.- Specified by:
flushin interfaceCacheSampler
-
getCacheName
public java.lang.String getCacheName()
Gets the cache name.- Specified by:
getCacheNamein interfaceLegacyCacheStatistics- Returns:
- the name of the Ehcache
-
getStatus
public java.lang.String getStatus()
Gets the status attribute of the Cache.- Specified by:
getStatusin interfaceCacheSampler- Returns:
- The status value from the Status enum class
-
removeAll
public void removeAll()
Removes all cached items.- Specified by:
removeAllin interfaceCacheSampler
-
getAverageGetTimeNanosMostRecentSample
public long getAverageGetTimeNanosMostRecentSample()
Get most recent value for average time taken for get() operation in the cache.- Specified by:
getAverageGetTimeNanosMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample of average get time taken for a get operation
-
getCacheEvictionRate
public long getCacheEvictionRate()
Gets the cache eviction rate.- Specified by:
getCacheEvictionRatein interfaceCacheSampler- Returns:
- eviction rate
-
getCacheElementEvictedMostRecentSample
public long getCacheElementEvictedMostRecentSample()
Get most recent value element evicted from cache.- Specified by:
getCacheElementEvictedMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for element evicted count
-
getCacheExpirationRate
public long getCacheExpirationRate()
Gets the cache expiration rate.- Specified by:
getCacheExpirationRatein interfaceCacheSampler- Returns:
- expiration rate
-
getCacheElementExpiredMostRecentSample
public long getCacheElementExpiredMostRecentSample()
Get most recent value element expired from cache.- Specified by:
getCacheElementExpiredMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent value for element expired count
-
getCachePutRate
public long getCachePutRate()
Gets the cache put rate.- Specified by:
getCachePutRatein interfaceCacheSampler- Returns:
- put rate
-
getCacheElementPutMostRecentSample
public long getCacheElementPutMostRecentSample()
Get most recent value element puts in the cache.- Specified by:
getCacheElementPutMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for number of element puts
-
getCacheRemoveRate
public long getCacheRemoveRate()
Gets the cache remove rate.- Specified by:
getCacheRemoveRatein interfaceCacheSampler- Returns:
- remove rate
-
getCacheElementRemovedMostRecentSample
public long getCacheElementRemovedMostRecentSample()
Get most recent value element removed from cache.- Specified by:
getCacheElementRemovedMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for element removed count
-
getCacheUpdateRate
public long getCacheUpdateRate()
Gets the cache update rate.- Specified by:
getCacheUpdateRatein interfaceCacheSampler- Returns:
- update rate
-
getCacheElementUpdatedMostRecentSample
public long getCacheElementUpdatedMostRecentSample()
Get most recent value element updates , i.e. put() on elements with already existing keys in the cache- Specified by:
getCacheElementUpdatedMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sampled value for element update count
-
getCacheInMemoryHitRate
public long getCacheInMemoryHitRate()
Gets the cache in memory hit rate.- Specified by:
getCacheInMemoryHitRatein interfaceCacheSampler- Returns:
- in-memory hit rate
-
getCacheHitInMemoryMostRecentSample
public long getCacheHitInMemoryMostRecentSample()
Get most recent value for in-memory cache hit.- Specified by:
getCacheHitInMemoryMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for cache hit count in memory
-
getCacheOffHeapHitRate
public long getCacheOffHeapHitRate()
Gets the cache off heap hit rate.- Specified by:
getCacheOffHeapHitRatein interfaceCacheSampler- Returns:
- off-heap hit rate
-
getCacheHitOffHeapMostRecentSample
public long getCacheHitOffHeapMostRecentSample()
Get most recent value for off-heap cache hit.- Specified by:
getCacheHitOffHeapMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for cache hit count in off-heap
-
getCacheHitRate
public long getCacheHitRate()
Gets the cache hit rate.- Specified by:
getCacheHitRatein interfaceCacheSampler- Returns:
- hit rate
-
getCacheHitMostRecentSample
public long getCacheHitMostRecentSample()
Get most recent value for cache hit.- Specified by:
getCacheHitMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for cache hit count
-
getCacheOnDiskHitRate
public long getCacheOnDiskHitRate()
Gets the cache on disk hit rate.- Specified by:
getCacheOnDiskHitRatein interfaceCacheSampler- Returns:
- on-disk hit rate
-
getCacheHitOnDiskMostRecentSample
public long getCacheHitOnDiskMostRecentSample()
Get most recent value for on-disk cache hit.- Specified by:
getCacheHitOnDiskMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for cache hit count on disk
-
getCacheMissExpiredMostRecentSample
public long getCacheMissExpiredMostRecentSample()
Get most recent value for cache miss as result of the element getting expired.- Specified by:
getCacheMissExpiredMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for cache miss count and the reason for miss being the element got expired
-
getCacheMissRate
public long getCacheMissRate()
Gets the cache miss rate.- Specified by:
getCacheMissRatein interfaceCacheSampler- Returns:
- miss rate
-
getCacheMissMostRecentSample
public long getCacheMissMostRecentSample()
Get most recent value for cache miss.- Specified by:
getCacheMissMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for cache miss count
-
getCacheInMemoryMissRate
public long getCacheInMemoryMissRate()
Gets the cache in memory miss rate.- Specified by:
getCacheInMemoryMissRatein interfaceCacheSampler- Returns:
- in-memory miss rate
-
getCacheMissInMemoryMostRecentSample
public long getCacheMissInMemoryMostRecentSample()
Get most recent value for in-memory cache miss.- Specified by:
getCacheMissInMemoryMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for cache miss count in memory
-
getCacheOffHeapMissRate
public long getCacheOffHeapMissRate()
Gets the cache off heap miss rate.- Specified by:
getCacheOffHeapMissRatein interfaceCacheSampler- Returns:
- off-heap miss rate
-
getCacheMissOffHeapMostRecentSample
public long getCacheMissOffHeapMostRecentSample()
Get most recent value for off-heap cache miss.- Specified by:
getCacheMissOffHeapMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for cache miss count in off-heap
-
getCacheOnDiskMissRate
public long getCacheOnDiskMissRate()
Gets the cache on disk miss rate.- Specified by:
getCacheOnDiskMissRatein interfaceCacheSampler- Returns:
- on-disk miss rate
-
getCacheMissOnDiskMostRecentSample
public long getCacheMissOnDiskMostRecentSample()
Get most recent value for on-disk cache miss.- Specified by:
getCacheMissOnDiskMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for cache miss count on disk
-
getCacheMissNotFoundMostRecentSample
public long getCacheMissNotFoundMostRecentSample()
Get most recent value for cache miss as result of the element not found in cache.- Specified by:
getCacheMissNotFoundMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent sample for cache miss not found count
-
dispose
public void dispose()
Method used to dispose this statistics.- Specified by:
disposein interfaceLegacyCacheStatistics
-
isTerracottaClustered
public boolean isTerracottaClustered()
Is the cache configured with Terracotta clustering?.- Specified by:
isTerracottaClusteredin interfaceCacheSampler- Returns:
- true if clustered with terracotta
-
getTerracottaConsistency
public java.lang.String getTerracottaConsistency()
Returns a textual description of a Terracotta-clustered cache's consistency mode.- Specified by:
getTerracottaConsistencyin interfaceCacheSampler- Returns:
- "STRONG", "EVENTUAL", or "na" if the cache is not Terracotta-clustered
-
getAverageGetTime
public long getAverageGetTime()
Gets the average get time.- Specified by:
getAverageGetTimein interfaceCacheSampler- Returns:
- average get time (nanos.)
-
getMaxGetTimeNanos
public java.lang.Long getMaxGetTimeNanos()
Return maximum time taken for a get operation in the cache in nanoseconds.- Specified by:
getMaxGetTimeNanosin interfaceLegacyCacheStatistics- Returns:
- maximum time taken for a get operation in the cache in nanoseconds
-
getMinGetTimeNanos
public java.lang.Long getMinGetTimeNanos()
Return minimum time taken for a get operation in the cache in nanoseconds.- Specified by:
getMinGetTimeNanosin interfaceLegacyCacheStatistics- Returns:
- minimum time taken for a get operation in the cache in nanoseconds
-
getXaCommitCount
public long getXaCommitCount()
Return the Cache's XAResource commit calls count.- Specified by:
getXaCommitCountin interfaceLegacyCacheStatistics- Returns:
- the Cache's XAResource commit calls count
-
getXaRollbackCount
public long getXaRollbackCount()
Return the Cache's XAResource rollback calls count.- Specified by:
getXaRollbackCountin interfaceLegacyCacheStatistics- Returns:
- the Cache's XAResource rollback calls count
-
getXaRecoveredCount
public long getXaRecoveredCount()
Return the Cache's XAResource recovered XIDs count.- Specified by:
getXaRecoveredCountin interfaceLegacyCacheStatistics- Returns:
- the Cache's XAResource recovered XIDs count
-
getHasWriteBehindWriter
public boolean getHasWriteBehindWriter()
Is there a registered Write-behind CacheWriter.- Specified by:
getHasWriteBehindWriterin interfaceCacheSampler- Returns:
- the checks for write behind writer
-
getWriterQueueLength
public long getWriterQueueLength()
Returns the total length of all write-behind queues for this cache.- Specified by:
getWriterQueueLengthin interfaceCacheSampler- Specified by:
getWriterQueueLengthin interfaceLegacyCacheStatistics- Returns:
- writer-behind queue length
-
getWriterMaxQueueSize
public int getWriterMaxQueueSize()
Returns the maximum size of any write-behind queues.- Specified by:
getWriterMaxQueueSizein interfaceCacheSampler- Returns:
- Maximum elements that can be queued for processing by the write-behind writer
- See Also:
CacheWriterConfiguration.getWriteBehindMaxQueueSize()
-
getWriterConcurrency
public int getWriterConcurrency()
Returns the number of configured write-behind queues/threads.- Specified by:
getWriterConcurrencyin interfaceCacheSampler- Returns:
- Number of configured processing queues/threads for use by the write-behind writer
- See Also:
CacheWriterConfiguration.getWriteBehindConcurrency()
-
getCacheHitCount
public long getCacheHitCount()
The number of times a requested item was found in the cache.- Specified by:
getCacheHitCountin interfaceLegacyCacheStatistics- Returns:
- the number of times a requested item was found in the cache
-
getCacheMissCount
public long getCacheMissCount()
Number of times a requested element was not found in the cache.- Specified by:
getCacheMissCountin interfaceLegacyCacheStatistics- Returns:
- the number of times a requested element was not found in the cache
-
getInMemoryMissCount
public long getInMemoryMissCount()
Number of times a requested item was not found in the Memory Store.- Specified by:
getInMemoryMissCountin interfaceLegacyCacheStatistics- Returns:
- the number of times a requested item was not found in memory
-
getOffHeapMissCount
public long getOffHeapMissCount()
Number of times a requested item was not found in the off-heap store.- Specified by:
getOffHeapMissCountin interfaceLegacyCacheStatistics- Returns:
- the number of times a requested item was not found in off-heap
-
getOnDiskMissCount
public long getOnDiskMissCount()
Number of times a requested item was not found in the Disk Store.- Specified by:
getOnDiskMissCountin interfaceLegacyCacheStatistics- Returns:
- the number of times a requested item was not found on Disk, or 0 if there is no disk storage configured.
-
getCacheMissCountExpired
public long getCacheMissCountExpired()
Gets the cache miss count expired.- Specified by:
getCacheMissCountExpiredin interfaceLegacyCacheStatistics- Returns:
- the number of times a requested element was not found in the cache and the reason being the element already expired
-
getDiskExpiryThreadIntervalSeconds
public long getDiskExpiryThreadIntervalSeconds()
Configuration property accessor- Specified by:
getDiskExpiryThreadIntervalSecondsin interfaceCacheSampler- Returns:
- Value for disk expiry thread interval in seconds specified in config
-
setDiskExpiryThreadIntervalSeconds
public void setDiskExpiryThreadIntervalSeconds(long seconds)
setDiskExpiryThreadIntervalSeconds.- Specified by:
setDiskExpiryThreadIntervalSecondsin interfaceCacheSampler- Parameters:
seconds- the new disk expiry thread interval seconds
-
getMaxEntriesLocalHeap
public long getMaxEntriesLocalHeap()
Configuration property accessor.- Specified by:
getMaxEntriesLocalHeapin interfaceCacheSampler- Returns:
- Max entries local heap config setting value
-
setMaxEntriesLocalHeap
public void setMaxEntriesLocalHeap(long maxEntries)
setMaxEntriesLocalHeap.- Specified by:
setMaxEntriesLocalHeapin interfaceCacheSampler- Parameters:
maxEntries- the new max entries local heap
-
getMaxBytesLocalHeap
public long getMaxBytesLocalHeap()
Configuration property accessor.- Specified by:
getMaxBytesLocalHeapin interfaceCacheSampler- Returns:
- Max bytes local heap config setting value
-
setMaxBytesLocalHeap
public void setMaxBytesLocalHeap(long maxBytes)
setMaxBytesLocalHeap.- Specified by:
setMaxBytesLocalHeapin interfaceCacheSampler- Parameters:
maxBytes- the new max bytes local heap
-
setMaxBytesLocalHeapAsString
public void setMaxBytesLocalHeapAsString(java.lang.String maxBytes)
setMaxBytesLocalHeap.- Specified by:
setMaxBytesLocalHeapAsStringin interfaceCacheSampler- Parameters:
maxBytes- the new max bytes local heap as string
-
getMaxBytesLocalHeapAsString
public java.lang.String getMaxBytesLocalHeapAsString()
Configuration property accessor.- Specified by:
getMaxBytesLocalHeapAsStringin interfaceCacheSampler- Returns:
- Max bytes local heap config setting value as string
-
getMaxEntriesLocalDisk
public long getMaxEntriesLocalDisk()
Configuration property accessor.- Specified by:
getMaxEntriesLocalDiskin interfaceCacheSampler- Returns:
- Max entries local disk config setting value
-
setMaxEntriesLocalDisk
public void setMaxEntriesLocalDisk(long maxEntries)
setMaxEntriesLocalDisk.- Specified by:
setMaxEntriesLocalDiskin interfaceCacheSampler- Parameters:
maxEntries- the new max entries local disk
-
setMaxBytesLocalDisk
public void setMaxBytesLocalDisk(long maxBytes)
setMaxBytesLocalDisk.- Specified by:
setMaxBytesLocalDiskin interfaceCacheSampler- Parameters:
maxBytes- the new max bytes local disk
-
setMaxBytesLocalDiskAsString
public void setMaxBytesLocalDiskAsString(java.lang.String maxBytes)
setMaxBytesLocalDisk.- Specified by:
setMaxBytesLocalDiskAsStringin interfaceCacheSampler- Parameters:
maxBytes- the new max bytes local disk as string
-
getMaxBytesLocalDiskAsString
public java.lang.String getMaxBytesLocalDiskAsString()
Configuration property accessor.- Specified by:
getMaxBytesLocalDiskAsStringin interfaceCacheSampler- Returns:
- Max bytes local disk config setting value as string
-
getMaxElementsOnDisk
public int getMaxElementsOnDisk()
Configuration property accessor.- Specified by:
getMaxElementsOnDiskin interfaceCacheSampler- Returns:
- Max elements on disk config setting value
-
getMaxEntriesInCache
public long getMaxEntriesInCache()
Configuration property accessor.- Specified by:
getMaxEntriesInCachein interfaceCacheSampler- Returns:
- Max entries in cache config setting value
-
setMaxElementsOnDisk
public void setMaxElementsOnDisk(int maxElements)
setMaxElementsOnDisk.- Specified by:
setMaxElementsOnDiskin interfaceCacheSampler- Parameters:
maxElements- the new max elements on disk
-
setMaxEntriesInCache
public void setMaxEntriesInCache(long maxEntries)
setMaxEntriesInCache.- Specified by:
setMaxEntriesInCachein interfaceCacheSampler- Parameters:
maxEntries- the new max entries in cache
-
getMaxBytesLocalDisk
public long getMaxBytesLocalDisk()
Configuration property accessor.- Specified by:
getMaxBytesLocalDiskin interfaceCacheSampler- Returns:
- Max bytes local disk config setting value
-
getMaxBytesLocalOffHeap
public long getMaxBytesLocalOffHeap()
Configuration property accessor.- Specified by:
getMaxBytesLocalOffHeapin interfaceCacheSampler- Returns:
- Max bytes local offheap config setting value
-
getMaxBytesLocalOffHeapAsString
public java.lang.String getMaxBytesLocalOffHeapAsString()
Configuration property accessor.- Specified by:
getMaxBytesLocalOffHeapAsStringin interfaceCacheSampler- Returns:
- Max bytes local offheap config setting value as string
-
getMemoryStoreEvictionPolicy
public java.lang.String getMemoryStoreEvictionPolicy()
Configuration property accessor.- Specified by:
getMemoryStoreEvictionPolicyin interfaceCacheSampler- Returns:
- a String representation of the policy
-
setMemoryStoreEvictionPolicy
public void setMemoryStoreEvictionPolicy(java.lang.String evictionPolicy)
setMemoryStoreEvictionPolicy.- Specified by:
setMemoryStoreEvictionPolicyin interfaceCacheSampler- Parameters:
evictionPolicy- the new memory store eviction policy
-
getTimeToIdleSeconds
public long getTimeToIdleSeconds()
Configuration property accessor.- Specified by:
getTimeToIdleSecondsin interfaceCacheSampler- Returns:
- TTI in config
-
setTimeToIdleSeconds
public void setTimeToIdleSeconds(long tti)
setTimeToIdleSeconds.- Specified by:
setTimeToIdleSecondsin interfaceCacheSampler- Parameters:
tti- the new time to idle seconds
-
getTimeToLiveSeconds
public long getTimeToLiveSeconds()
Configuration property accessor.- Specified by:
getTimeToLiveSecondsin interfaceCacheSampler- Returns:
- TTL in config
-
setTimeToLiveSeconds
public void setTimeToLiveSeconds(long ttl)
setTimeToLiveSeconds.- Specified by:
setTimeToLiveSecondsin interfaceCacheSampler- Parameters:
ttl- the new time to live seconds
-
isDiskPersistent
public boolean isDiskPersistent()
Configuration property accessor.- Specified by:
isDiskPersistentin interfaceCacheSampler- Returns:
- true if configured with disk persistence
-
getPersistenceStrategy
public java.lang.String getPersistenceStrategy()
getPersistenceStrategy- Specified by:
getPersistenceStrategyin interfaceCacheSampler- Returns:
- the strategy name
- See Also:
PersistenceConfiguration
-
setDiskPersistent
public void setDiskPersistent(boolean diskPersistent)
setDiskPersistent.- Specified by:
setDiskPersistentin interfaceCacheSampler- Parameters:
diskPersistent- the new disk persistent
-
isOverflowToOffHeap
public boolean isOverflowToOffHeap()
isOverflowToOffHeap- Specified by:
isOverflowToOffHeapin interfaceCacheSampler- Returns:
- true if configured for offheap
-
isEternal
public boolean isEternal()
Configuration property accessor.- Specified by:
isEternalin interfaceCacheSampler- Returns:
- true if set to eternal in config
-
setEternal
public void setEternal(boolean eternal)
setEternal.- Specified by:
setEternalin interfaceCacheSampler- Parameters:
eternal- the new eternal
-
isOverflowToDisk
public boolean isOverflowToDisk()
Configuration property accessor.- Specified by:
isOverflowToDiskin interfaceCacheSampler- Returns:
- true if overflow to disk specified in config
-
setOverflowToDisk
public void setOverflowToDisk(boolean overflowToDisk)
setOverflowToDisk.- Specified by:
setOverflowToDiskin interfaceCacheSampler- Parameters:
overflowToDisk- the new overflow to disk
-
isLoggingEnabled
public boolean isLoggingEnabled()
Configuration property accessor.- Specified by:
isLoggingEnabledin interfaceCacheSampler- Returns:
- true if logging is enabled on the cache
-
setLoggingEnabled
public void setLoggingEnabled(boolean enabled)
setLoggingEnabled.- Specified by:
setLoggingEnabledin interfaceCacheSampler- Parameters:
enabled- the new logging enabled
-
isPinned
public boolean isPinned()
Configuration property accessor.- Specified by:
isPinnedin interfaceCacheSampler- Returns:
- true if the cache is pinned
- See Also:
PinningConfiguration
-
getPinnedToStore
public java.lang.String getPinnedToStore()
Configuration property accessor.- Specified by:
getPinnedToStorein interfaceCacheSampler- Returns:
- the store to which this cache is pinned
- See Also:
PinningConfiguration
-
getEvictedCount
public long getEvictedCount()
Number of elements evicted from the cache.- Specified by:
getEvictedCountin interfaceLegacyCacheStatistics- Returns:
- Number of elements evicted from the cache
-
getExpiredCount
public long getExpiredCount()
Number of elements expired since creation or last clear.- Specified by:
getExpiredCountin interfaceLegacyCacheStatistics- Returns:
- Number of expired elements
-
getInMemoryHitCount
public long getInMemoryHitCount()
Number of times a requested item was found in the Memory Store.- Specified by:
getInMemoryHitCountin interfaceLegacyCacheStatistics- Returns:
- the number of times a requested item was found in memory
-
getOffHeapHitCount
public long getOffHeapHitCount()
Number of times a requested item was found in the off-heap store.- Specified by:
getOffHeapHitCountin interfaceLegacyCacheStatistics- Returns:
- the number of times a requested item was found in off-heap
-
getOffHeapSize
@Deprecated public long getOffHeapSize()
Deprecated.Number of elements in the off-heap store.- Specified by:
getOffHeapSizein interfaceLegacyCacheStatistics- Returns:
- the number of elements in off-heap
-
getOnDiskHitCount
public long getOnDiskHitCount()
Number of times a requested item was found in the Disk Store.- Specified by:
getOnDiskHitCountin interfaceLegacyCacheStatistics- Returns:
- the number of times a requested item was found on Disk, or 0 if there is no disk storage configured.
-
getOnDiskSize
@Deprecated public long getOnDiskSize()
Deprecated.Number of elements in the DiskStore.- Specified by:
getOnDiskSizein interfaceLegacyCacheStatistics- Returns:
- number of elements on disk
-
getLocalDiskSize
public long getLocalDiskSize()
Number of entries in the DiskStore.- Specified by:
getLocalDiskSizein interfaceLegacyCacheStatistics- Returns:
- number of elements on disk
-
getLocalHeapSize
public long getLocalHeapSize()
Number of entries in the MemoryStore.- Specified by:
getLocalHeapSizein interfaceLegacyCacheStatistics- Returns:
- the number of elements in memory
-
getLocalOffHeapSize
public long getLocalOffHeapSize()
Number of entries in the off-heap store.- Specified by:
getLocalOffHeapSizein interfaceLegacyCacheStatistics- Returns:
- the number of elements in off-heap
-
getLocalDiskSizeInBytes
public long getLocalDiskSizeInBytes()
Number of of bytes used by entries in the DiskStore.- Specified by:
getLocalDiskSizeInBytesin interfaceLegacyCacheStatistics- Returns:
- number of bytes used by elements on disk
-
getLocalHeapSizeInBytes
public long getLocalHeapSizeInBytes()
Number of of bytes used by entries in the MemoryStore.- Specified by:
getLocalHeapSizeInBytesin interfaceLegacyCacheStatistics- Returns:
- the number of of bytes used by elements in memory
-
getLocalOffHeapSizeInBytes
public long getLocalOffHeapSizeInBytes()
Number of of bytes used by entries in the off-heap store.- Specified by:
getLocalOffHeapSizeInBytesin interfaceLegacyCacheStatistics- Returns:
- the number of of bytes used by elements in off-heap
-
getPutCount
public long getPutCount()
Number of puts that has happened in the cache.- Specified by:
getPutCountin interfaceLegacyCacheStatistics- Returns:
- Number of puts
-
getRemovedCount
public long getRemovedCount()
Number of elements removed since creation or last clear.- Specified by:
getRemovedCountin interfaceLegacyCacheStatistics- Returns:
- Number of elements removed
-
getSize
public long getSize()
Size of the cache based on current accuracy settings.- Specified by:
getSizein interfaceLegacyCacheStatistics- Returns:
- The size of the cache based on current accuracy setting
-
getInMemorySize
public long getInMemorySize()
Number of elements in the MemoryStore.- Specified by:
getInMemorySizein interfaceLegacyCacheStatistics- Returns:
- the number of elements in memory
-
getUpdateCount
public long getUpdateCount()
Number of updates that as happened in the cache.- Specified by:
getUpdateCountin interfaceLegacyCacheStatistics- Returns:
- Number of updates
-
getReplaceOneArgSuccessCount
public long getReplaceOneArgSuccessCount()
Description copied from interface:LegacyCacheStatisticsNumber of one arg replace operations that succeeded.- Specified by:
getReplaceOneArgSuccessCountin interfaceLegacyCacheStatistics- Returns:
- Number of replaces
-
getReplaceOneArgSuccessRate
public long getReplaceOneArgSuccessRate()
Description copied from interface:LegacyCacheStatisticsRate of one arg replace operations that succeeded. Similar to most recent smaple- Specified by:
getReplaceOneArgSuccessRatein interfaceLegacyCacheStatistics- Returns:
- Rate of replaces
-
getReplaceOneArgMissCount
public long getReplaceOneArgMissCount()
Description copied from interface:LegacyCacheStatisticsNumber of one arg replace operations that missed.- Specified by:
getReplaceOneArgMissCountin interfaceLegacyCacheStatistics- Returns:
- Number of replace misses
-
getReplaceOneArgMissRate
public long getReplaceOneArgMissRate()
Description copied from interface:LegacyCacheStatisticsRate of one arg replace operations that missed.- Specified by:
getReplaceOneArgMissRatein interfaceLegacyCacheStatistics- Returns:
- Rate of replace misses
-
getReplaceTwoArgSuccessCount
public long getReplaceTwoArgSuccessCount()
Description copied from interface:LegacyCacheStatisticsNumber of two arg replace operations that succeeded.- Specified by:
getReplaceTwoArgSuccessCountin interfaceLegacyCacheStatistics- Returns:
- Number of replaces
-
getReplaceTwoArgSuccessRate
public long getReplaceTwoArgSuccessRate()
Description copied from interface:LegacyCacheStatisticsRate of two arg replace operations that succeeded.- Specified by:
getReplaceTwoArgSuccessRatein interfaceLegacyCacheStatistics- Returns:
- Rate of replaces
-
getReplaceTwoArgMissCount
public long getReplaceTwoArgMissCount()
Description copied from interface:LegacyCacheStatisticsNumber of two arg replace operations that missed.- Specified by:
getReplaceTwoArgMissCountin interfaceLegacyCacheStatistics- Returns:
- Number of replace misses
-
getReplaceTwoArgMissRate
public long getReplaceTwoArgMissRate()
Description copied from interface:LegacyCacheStatisticsRate of two arg replace operations that missed.- Specified by:
getReplaceTwoArgMissRatein interfaceLegacyCacheStatistics- Returns:
- Rate of replace misses
-
getPutIfAbsentSuccessCount
public long getPutIfAbsentSuccessCount()
Description copied from interface:LegacyCacheStatisticsNumber of putIfAbsent operations that succeeded.- Specified by:
getPutIfAbsentSuccessCountin interfaceLegacyCacheStatistics- Returns:
- Number of putIfAbsents
-
getPutIfAbsentSuccessRate
public long getPutIfAbsentSuccessRate()
Description copied from interface:LegacyCacheStatisticsRate of putIfAbsent operations that succeeded.- Specified by:
getPutIfAbsentSuccessRatein interfaceLegacyCacheStatistics- Returns:
- Rate of putIfAbsents
-
getPutIfAbsentMissCount
public long getPutIfAbsentMissCount()
Description copied from interface:LegacyCacheStatisticsNumber of putIfAbsent operations that missed.- Specified by:
getPutIfAbsentMissCountin interfaceLegacyCacheStatistics- Returns:
- Number of putIfAbsent misses
-
getPutIfAbsentMissRate
public long getPutIfAbsentMissRate()
Description copied from interface:LegacyCacheStatisticsRate of putIfAbsent operations that missed.- Specified by:
getPutIfAbsentMissRatein interfaceLegacyCacheStatistics- Returns:
- Rate of putIfAbsent misses
-
getRemoveElementSuccessCount
public long getRemoveElementSuccessCount()
Description copied from interface:LegacyCacheStatisticsNumber of removeElement operations that succeeded- Specified by:
getRemoveElementSuccessCountin interfaceLegacyCacheStatistics- Returns:
- Number of removeElement operations
-
getRemoveElementSuccessRate
public long getRemoveElementSuccessRate()
Description copied from interface:LegacyCacheStatisticsRate of removeElement operations that succeeded- Specified by:
getRemoveElementSuccessRatein interfaceLegacyCacheStatistics- Returns:
- Rate of removeElement operations
-
getRemoveElementMissCount
public long getRemoveElementMissCount()
Description copied from interface:LegacyCacheStatisticsNumber of removeElement operations that missed.- Specified by:
getRemoveElementMissCountin interfaceLegacyCacheStatistics- Returns:
- Number of removeElement misses
-
getRemoveElementMissRate
public long getRemoveElementMissRate()
Description copied from interface:LegacyCacheStatisticsRate of removeElement operations that missed.- Specified by:
getRemoveElementMissRatein interfaceLegacyCacheStatistics- Returns:
- Rate of removeElement misses
-
deregistered
public void deregistered(CacheConfiguration config)
Indicates that this listener was removed from the given configuration- Specified by:
deregisteredin interfaceCacheConfigurationListener
-
maxBytesLocalHeapChanged
public void maxBytesLocalHeapChanged(long oldValue, long newValue)Indicates a change in the configuration for maxBytesLocalHeap setting- Specified by:
maxBytesLocalHeapChangedin interfaceCacheConfigurationListener- Parameters:
oldValue- old value in bytesnewValue- new value in bytes
-
maxBytesLocalDiskChanged
public void maxBytesLocalDiskChanged(long oldValue, long newValue)Indicates a change in the configuration for maxBytesLocalDisk setting- Specified by:
maxBytesLocalDiskChangedin interfaceCacheConfigurationListener- Parameters:
oldValue- old value in bytesnewValue- new value in bytes
-
diskCapacityChanged
public void diskCapacityChanged(int oldCapacity, int newCapacity)Indicates a change in the configurations disk store capacity- Specified by:
diskCapacityChangedin interfaceCacheConfigurationListener- Parameters:
oldCapacity- previous capacitynewCapacity- new capacity
-
maxEntriesInCacheChanged
public void maxEntriesInCacheChanged(long oldCapacity, long newCapacity)Indicates a change in the configuration for maxEntriesInCache setting- Specified by:
maxEntriesInCacheChangedin interfaceCacheConfigurationListener- Parameters:
oldCapacity- old valuenewCapacity- new value
-
loggingChanged
public void loggingChanged(boolean oldValue, boolean newValue)Indicates a change in the configuration for enable/disable logging- Specified by:
loggingChangedin interfaceCacheConfigurationListener- Parameters:
oldValue- old value whether logging was enabled or notnewValue- new value whether logging was enabled or not
-
memoryCapacityChanged
public void memoryCapacityChanged(int oldCapacity, int newCapacity)Indicates a change in the configurations memory store capacity- Specified by:
memoryCapacityChangedin interfaceCacheConfigurationListener- Parameters:
oldCapacity- previous capacitynewCapacity- new capacity
-
registered
public void registered(CacheConfiguration config)
Indicates that this listener was registered with the given configuration- Specified by:
registeredin interfaceCacheConfigurationListener
-
timeToIdleChanged
public void timeToIdleChanged(long oldTimeToIdle, long newTimeToIdle)Indicates a change in the configurations time to idle- Specified by:
timeToIdleChangedin interfaceCacheConfigurationListener- Parameters:
oldTimeToIdle- previous time to idle valuenewTimeToIdle- new time to idle value
-
timeToLiveChanged
public void timeToLiveChanged(long oldTimeToLive, long newTimeToLive)Indicates a change in the configurations time to live- Specified by:
timeToLiveChangedin interfaceCacheConfigurationListener- Parameters:
oldTimeToLive- previous time to live valuenewTimeToLive- new time to live value
-
getAverageSearchTime
public long getAverageSearchTime()
Gets the average search time.- Specified by:
getAverageSearchTimein interfaceCacheSampler- Returns:
- search time
-
getSearchesPerSecond
public long getSearchesPerSecond()
Get the number of searches that have finished execution in the last second.- Specified by:
getSearchesPerSecondin interfaceLegacyCacheStatistics- Returns:
- the searches per second
-
getTransactional
public boolean getTransactional()
Is the cache a transactional one.- Specified by:
getTransactionalin interfaceCacheSampler- Returns:
- the transactional
- See Also:
CacheConfiguration.TransactionalMode
-
getSearchable
public boolean getSearchable()
Is the cache configured for search.- Specified by:
getSearchablein interfaceCacheSampler- Returns:
- the searchable
- See Also:
Searchable
-
getSearchAttributes
public java.util.Map<java.lang.String,java.lang.String> getSearchAttributes()
Description copied from interface:CacheSamplerGet the declared search attributes and their type names. Note: doesn't deal with DynamicAttributeExctractor.- Specified by:
getSearchAttributesin interfaceCacheSampler- Returns:
- map of search attribute name
->type name
-
getCacheSearchRate
public long getCacheSearchRate()
Gets the cache search rate.- Specified by:
getCacheSearchRatein interfaceCacheSampler- Returns:
- search rate
-
getTransactionCommitRate
public long getTransactionCommitRate()
Gets the transaction commit rate.- Specified by:
getTransactionCommitRatein interfaceCacheSampler- Returns:
- Xa commit rate
-
getCacheXaCommitsMostRecentSample
public long getCacheXaCommitsMostRecentSample()
Get most recent value of XA commits.- Specified by:
getCacheXaCommitsMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- the cache xa commits most recent sample
-
getTransactionRollbackRate
public long getTransactionRollbackRate()
Gets the transaction rollback rate.- Specified by:
getTransactionRollbackRatein interfaceCacheSampler- Returns:
- Xa rollback rate
-
getCacheXaRollbacksMostRecentSample
public long getCacheXaRollbacksMostRecentSample()
Get most recent value of XA rollbacks.- Specified by:
getCacheXaRollbacksMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- the cache xa rollbacks most recent sample
-
isLocalHeapCountBased
public boolean isLocalHeapCountBased()
Check if the local heap is measured with ARC or in element count.- Specified by:
isLocalHeapCountBasedin interfaceLegacyCacheStatistics- Returns:
- true, if is local heap count based
-
getCacheHitRatio
public int getCacheHitRatio()
The ratio of hits to accesses (hits + misses).- Specified by:
getCacheHitRatioin interfaceLegacyCacheStatistics- Returns:
- the ratio of hits to (hits + misses) (0 - 100)
-
getCacheHitRatioMostRecentSample
public int getCacheHitRatioMostRecentSample()
Get most recent value for cache hit ratio.- Specified by:
getCacheHitRatioMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- Most recent value for cache hit ratio
-
getCacheHitRatioSample
public SampledCounter getCacheHitRatioSample()
Get theSampledCounterfor cache hit ratio.- Specified by:
getCacheHitRatioSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache hit ratio
-
getAverageGetTimeNanos
public long getAverageGetTimeNanos()
Description copied from interface:LegacyCacheStatisticsAverage time in nanoseconds taken to get an element from the cache.- Specified by:
getAverageGetTimeNanosin interfaceLegacyCacheStatistics- Returns:
- Average time taken for a get operation in nanoseconds
-
getCacheHitSample
public SampledCounter getCacheHitSample()
Get theSampledCounterfor cache hit.- Specified by:
getCacheHitSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache hit count
-
getCacheHitInMemorySample
public SampledCounter getCacheHitInMemorySample()
Get theSampledCounterfor in-memory cache hit.- Specified by:
getCacheHitInMemorySamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache hit count in memory
-
getCacheHitOffHeapSample
public SampledCounter getCacheHitOffHeapSample()
Get theSampledCounterfor off-heap cache hit.- Specified by:
getCacheHitOffHeapSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache hit count in off-heap
-
getCacheHitOnDiskSample
public SampledCounter getCacheHitOnDiskSample()
Get theSampledCounterfor on-disk cache hit.- Specified by:
getCacheHitOnDiskSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache hit count on disk
-
getCacheMissSample
public SampledCounter getCacheMissSample()
Get theSampledCounterfor cache miss.- Specified by:
getCacheMissSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache miss count
-
getCacheMissInMemorySample
public SampledCounter getCacheMissInMemorySample()
Get theSampledCounterfor in-memory cache miss.- Specified by:
getCacheMissInMemorySamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache miss count in memory
-
getCacheMissOffHeapSample
public SampledCounter getCacheMissOffHeapSample()
Get theSampledCounterfor off-heap cache miss.- Specified by:
getCacheMissOffHeapSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache miss count in off-heap
-
getCacheMissOnDiskSample
public SampledCounter getCacheMissOnDiskSample()
Get theSampledCounterfor on-disk cache miss.- Specified by:
getCacheMissOnDiskSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache miss count on disk
-
getCacheMissExpiredSample
public SampledCounter getCacheMissExpiredSample()
Get theSampledCounterfor cache miss as result of the element getting expired.- Specified by:
getCacheMissExpiredSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache miss count and the reason for miss being the element got expired
-
getCacheMissNotFoundSample
public SampledCounter getCacheMissNotFoundSample()
Get theSampledCounterfor cache miss as result of the element not found in cache.- Specified by:
getCacheMissNotFoundSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache miss not found count
-
getCacheElementEvictedSample
public SampledCounter getCacheElementEvictedSample()
Get theSampledCounterelement evicted from cache.- Specified by:
getCacheElementEvictedSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor element evicted count
-
getCacheElementRemovedSample
public SampledCounter getCacheElementRemovedSample()
Get theSampledCounterelement removed from cache.- Specified by:
getCacheElementRemovedSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor element removed count
-
getCacheElementExpiredSample
public SampledCounter getCacheElementExpiredSample()
Get theSampledCounterelement expired from cache.- Specified by:
getCacheElementExpiredSamplein interfaceCacheSampler- Returns:
- Most recent value for element expired count
-
getCacheElementPutSample
public SampledCounter getCacheElementPutSample()
Get theSampledCounterelement puts in the cache.- Specified by:
getCacheElementPutSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor number of element puts
-
getCacheElementUpdatedSample
public SampledCounter getCacheElementUpdatedSample()
Get theSampledCounterelement updates , i.e. put() on elements with already existing keys in the cache- Specified by:
getCacheElementUpdatedSamplein interfaceCacheSampler- Returns:
- the
SampledCounterd value for element update count
-
getAverageGetTimeSample
public SampledRateCounter getAverageGetTimeSample()
Get theSampledRateCounterfor average time taken for get() operation in the cache.- Specified by:
getAverageGetTimeSamplein interfaceCacheSampler- Returns:
- the
SampledRateCounterof average get time taken for a get operation
-
getAverageSearchTimeSample
public SampledRateCounter getAverageSearchTimeSample()
Get theSampledRateCounterfor average search execution time for searches finishing within the last sample period.- Specified by:
getAverageSearchTimeSamplein interfaceCacheSampler- Returns:
- the
SampledRateCounterof average search time taken
-
getSearchesPerSecondSample
public SampledCounter getSearchesPerSecondSample()
Get theSampledCounterfor number of searches that have finished in the interval.- Specified by:
getSearchesPerSecondSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor number of searches
-
getCacheXaCommitsSample
public SampledCounter getCacheXaCommitsSample()
Get theSampledCounterfor number of XA Transaction commits that have completed in the interval.- Specified by:
getCacheXaCommitsSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor number XA Transaction commits
-
getCacheXaRollbacksSample
public SampledCounter getCacheXaRollbacksSample()
Get theSampledCounterfor number of XA Transaction rollbacks that have completed in the interval.- Specified by:
getCacheXaRollbacksSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor number XA Transaction rollbacks
-
getSizeSample
public SampledCounter getSizeSample()
Get theSampledCounterfor cache size.- Specified by:
getSizeSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor cache size
-
getLocalHeapSizeSample
public SampledCounter getLocalHeapSizeSample()
Get theSampledCounterfor local heap size.- Specified by:
getLocalHeapSizeSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor local heap size
-
getLocalHeapSizeInBytesSample
public SampledCounter getLocalHeapSizeInBytesSample()
Get theSampledCounterfor local heap size in bytes.- Specified by:
getLocalHeapSizeInBytesSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor local heap size in bytes
-
getLocalOffHeapSizeSample
public SampledCounter getLocalOffHeapSizeSample()
Get theSampledCounterfor local offheap size.- Specified by:
getLocalOffHeapSizeSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor local offheap size
-
getLocalOffHeapSizeInBytesSample
public SampledCounter getLocalOffHeapSizeInBytesSample()
Get theSampledCounterfor local offheap size in bytes.- Specified by:
getLocalOffHeapSizeInBytesSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor local offheap size in bytes
-
getLocalDiskSizeSample
public SampledCounter getLocalDiskSizeSample()
Get theSampledCounterfor local disk size.- Specified by:
getLocalDiskSizeSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor local disk size
-
getLocalDiskSizeInBytesSample
public SampledCounter getLocalDiskSizeInBytesSample()
Get theSampledCounterfor local disk size in bytes.- Specified by:
getLocalDiskSizeInBytesSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor local disk size in bytes
-
getRemoteSizeSample
public SampledCounter getRemoteSizeSample()
Get theSampledCounterfor remote size.- Specified by:
getRemoteSizeSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor remote size
-
getWriterQueueLengthSample
public SampledCounter getWriterQueueLengthSample()
Get theSampledCounterfor writer queue length.- Specified by:
getWriterQueueLengthSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor writer queue length
-
getAverageSearchTimeNanos
public long getAverageSearchTimeNanos()
Description copied from interface:LegacyCacheStatisticsGet the average search execution time for searches finishing within the last sample period.- Specified by:
getAverageSearchTimeNanosin interfaceLegacyCacheStatistics- Returns:
- the average search time nanos
-
getCacheClusterOfflineCount
public long getCacheClusterOfflineCount()
Description copied from interface:LegacyCacheStatisticsCount of cluster offline events for this node.- Specified by:
getCacheClusterOfflineCountin interfaceLegacyCacheStatistics- Returns:
- count
-
getCacheClusterRejoinCount
public long getCacheClusterRejoinCount()
Description copied from interface:LegacyCacheStatisticsCount of cluster rejoin events for this node.- Specified by:
getCacheClusterRejoinCountin interfaceLegacyCacheStatistics- Returns:
- count
-
getCacheClusterOnlineCount
public long getCacheClusterOnlineCount()
Description copied from interface:LegacyCacheStatisticsCount of cluster online events for this node.- Specified by:
getCacheClusterOnlineCountin interfaceLegacyCacheStatistics- Returns:
- count
-
getCacheClusterOfflineMostRecentSample
public long getCacheClusterOfflineMostRecentSample()
Description copied from interface:LegacyCacheStatisticsGets the cache cluster offline most recent sample.- Specified by:
getCacheClusterOfflineMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- the cache cluster offline most recent sample
-
getCacheClusterRejoinMostRecentSample
public long getCacheClusterRejoinMostRecentSample()
Description copied from interface:LegacyCacheStatisticsGets the cache cluster rejoin most recent sample.- Specified by:
getCacheClusterRejoinMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- the cache cluster rejoin most recent sample
-
getCacheClusterOnlineMostRecentSample
public long getCacheClusterOnlineMostRecentSample()
Description copied from interface:LegacyCacheStatisticsGets the cache cluster online most recent sample.- Specified by:
getCacheClusterOnlineMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- the cache cluster online most recent sample
-
getCacheClusterOfflineSample
public SampledCounter getCacheClusterOfflineSample()
Description copied from interface:CacheSamplerGet theSampledCounterfor offline cache cluster events.- Specified by:
getCacheClusterOfflineSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor offline cache cluster events
-
getCacheClusterOnlineSample
public SampledCounter getCacheClusterOnlineSample()
Description copied from interface:CacheSamplerGet theSampledCounterfor online cache cluster events.- Specified by:
getCacheClusterOnlineSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor online cache cluster events
-
getCacheClusterRejoinSample
public SampledCounter getCacheClusterRejoinSample()
Description copied from interface:CacheSamplerGet theSampledCounterfor rejoin cache cluster events.- Specified by:
getCacheClusterRejoinSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor rejoin cache cluster events
-
getMostRecentRejoinTimeStampMillis
public long getMostRecentRejoinTimeStampMillis()
Description copied from interface:CacheSamplerGet the timestamp in nanos of the last rejoin.- Specified by:
getMostRecentRejoinTimeStampMillisin interfaceCacheSampler- Returns:
- the most recent rejoin time stamp millis
-
getMostRecentRejoinTimestampMillisSample
public SampledCounter getMostRecentRejoinTimestampMillisSample()
Description copied from interface:CacheSamplerGet theSampledCounterfor last rejoin timestamp.- Specified by:
getMostRecentRejoinTimestampMillisSamplein interfaceCacheSampler- Returns:
- the
SampledCounterfor last rejoin timestamp
-
getNonStopSuccessCount
public long getNonStopSuccessCount()
Description copied from interface:LegacyCacheStatisticsGets the non stop success count.- Specified by:
getNonStopSuccessCountin interfaceLegacyCacheStatistics- Returns:
- the non stop success count
-
getNonStopFailureCount
public long getNonStopFailureCount()
Description copied from interface:LegacyCacheStatisticsGets the non stop failure count.- Specified by:
getNonStopFailureCountin interfaceLegacyCacheStatistics- Returns:
- the non stop failure count
-
getNonStopRejoinTimeoutCount
public long getNonStopRejoinTimeoutCount()
Description copied from interface:LegacyCacheStatisticsGets the non stop rejoin timeout count.- Specified by:
getNonStopRejoinTimeoutCountin interfaceLegacyCacheStatistics- Returns:
- the non stop rejoin timeout count
-
getNonStopTimeoutCount
public long getNonStopTimeoutCount()
Description copied from interface:LegacyCacheStatisticsGets the non stop timeout count.- Specified by:
getNonStopTimeoutCountin interfaceLegacyCacheStatistics- Returns:
- the non stop timeout count
-
getNonStopSuccessMostRecentSample
public long getNonStopSuccessMostRecentSample()
Description copied from interface:LegacyCacheStatisticsGets the non stop success most recent sample.- Specified by:
getNonStopSuccessMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- the non stop success most recent sample
-
getNonStopFailureMostRecentSample
public long getNonStopFailureMostRecentSample()
Description copied from interface:LegacyCacheStatisticsGets the non stop failure most recent sample.- Specified by:
getNonStopFailureMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- the non stop failure most recent sample
-
getNonStopRejoinTimeoutMostRecentSample
public long getNonStopRejoinTimeoutMostRecentSample()
Description copied from interface:LegacyCacheStatisticsGets the non stop rejoin most recent sample.- Specified by:
getNonStopRejoinTimeoutMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- the non stop rejoin most recent sample
-
getNonStopTimeoutMostRecentSample
public long getNonStopTimeoutMostRecentSample()
Description copied from interface:LegacyCacheStatisticsGets the non stop timeout most recent sample.- Specified by:
getNonStopTimeoutMostRecentSamplein interfaceLegacyCacheStatistics- Returns:
- the non stop timeout most recent sample
-
getNonStopSuccessSample
public SampledCounter getNonStopSuccessSample()
Description copied from interface:CacheSamplerGets the nonstop success sample.- Specified by:
getNonStopSuccessSamplein interfaceCacheSampler- Returns:
- the nonstop success sample
-
getNonStopFailureSample
public SampledCounter getNonStopFailureSample()
Description copied from interface:CacheSamplerGets the nonstop failure sample.- Specified by:
getNonStopFailureSamplein interfaceCacheSampler- Returns:
- the nonstop failure sample
-
getNonStopRejoinTimeoutSample
public SampledCounter getNonStopRejoinTimeoutSample()
Description copied from interface:CacheSamplerGets the nonstop rejoin sample.- Specified by:
getNonStopRejoinTimeoutSamplein interfaceCacheSampler- Returns:
- the nonstop rejoin sample
-
getNonStopTimeoutSample
public SampledCounter getNonStopTimeoutSample()
Description copied from interface:CacheSamplerGets the nonstop timeout sample.- Specified by:
getNonStopTimeoutSamplein interfaceCacheSampler- Returns:
- the nonstop timeout sample
-
getNonStopSuccessRate
public long getNonStopSuccessRate()
Description copied from interface:CacheSamplerGets the non stop success most recent sample.- Specified by:
getNonStopSuccessRatein interfaceCacheSampler- Returns:
- the non stop success most recent sample
-
getNonStopFailureRate
public long getNonStopFailureRate()
Description copied from interface:CacheSamplerGets the non stop failure most recent sample.- Specified by:
getNonStopFailureRatein interfaceCacheSampler- Returns:
- the non stop failure most recent sample
-
getNonStopRejoinTimeoutRate
public long getNonStopRejoinTimeoutRate()
Description copied from interface:CacheSamplerGets the non stop rejoin most recent sample.- Specified by:
getNonStopRejoinTimeoutRatein interfaceCacheSampler- Returns:
- the non stop rejoin most recent sample
-
getNonStopTimeoutRate
public long getNonStopTimeoutRate()
Description copied from interface:CacheSamplerGets the non stop timeout most recent sample.- Specified by:
getNonStopTimeoutRatein interfaceCacheSampler- Returns:
- the non stop timeout most recent sample
-
getReplaceOneArgSuccessSample
public SampledCounter getReplaceOneArgSuccessSample()
Description copied from interface:CacheSamplerGets the one arg replace success sample- Specified by:
getReplaceOneArgSuccessSamplein interfaceCacheSampler- Returns:
- one arg success sample
-
getReplaceOneArgMissSample
public SampledCounter getReplaceOneArgMissSample()
Description copied from interface:CacheSamplerGets the one arg replace miss sample- Specified by:
getReplaceOneArgMissSamplein interfaceCacheSampler- Returns:
- one arg miss sample
-
getReplaceTwoArgSuccessSample
public SampledCounter getReplaceTwoArgSuccessSample()
Description copied from interface:CacheSamplerGets the two arg replace success sample- Specified by:
getReplaceTwoArgSuccessSamplein interfaceCacheSampler- Returns:
- two arg success sample
-
getReplaceTwoArgMissSample
public SampledCounter getReplaceTwoArgMissSample()
Description copied from interface:CacheSamplerGets the two arg replace miss sample- Specified by:
getReplaceTwoArgMissSamplein interfaceCacheSampler- Returns:
- two arg miss sample
-
getPutIfAbsentSuccessSample
public SampledCounter getPutIfAbsentSuccessSample()
Description copied from interface:CacheSamplerGets the putIfAbsent success sample- Specified by:
getPutIfAbsentSuccessSamplein interfaceCacheSampler- Returns:
- putIfAbsent success sample
-
getPutIfAbsentMissSample
public SampledCounter getPutIfAbsentMissSample()
Description copied from interface:CacheSamplerGets the putIfAbsent miss sample- Specified by:
getPutIfAbsentMissSamplein interfaceCacheSampler- Returns:
- putIfAbsent miss sample
-
getRemoveElementSuccessSample
public SampledCounter getRemoveElementSuccessSample()
Description copied from interface:CacheSamplerGets the removeElement success sample- Specified by:
getRemoveElementSuccessSamplein interfaceCacheSampler- Returns:
- removeElement success sample
-
getRemoveElementMissSample
public SampledCounter getRemoveElementMissSample()
Description copied from interface:CacheSamplerGets the removeElement miss sample- Specified by:
getRemoveElementMissSamplein interfaceCacheSampler- Returns:
- removeElement miss sample
-
getNonstopTimeoutRatio
public int getNonstopTimeoutRatio()
Description copied from interface:LegacyCacheStatisticsGet the ratio of nonstop timeouts+rejoin timeouts to operations- Specified by:
getNonstopTimeoutRatioin interfaceLegacyCacheStatistics- Returns:
- the ratio of timeouts to operation (0 - 100)
-
-