Interface CacheSampler
-
- All Superinterfaces:
LegacyCacheStatistics
- All Known Subinterfaces:
SampledCacheMBean
- All Known Implementing Classes:
CacheSamplerImpl,SampledCache
public interface CacheSampler extends LegacyCacheStatistics
An interface for exposing cache statistics. Extends fromLegacyCacheStatistics- Author:
- Abhishek Sanoujam, byoukste
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflush()Flushes all cache items from memory to the disk store, and from the DiskStore to disk.longgetAverageGetTime()Gets the average get time.SampledRateCountergetAverageGetTimeSample()Get theSampledRateCounterfor average time taken for get() operation in the cache.longgetAverageSearchTime()Gets the average search time.SampledRateCountergetAverageSearchTimeSample()Get theSampledRateCounterfor average search execution time for searches finishing within the last sample period.SampledCountergetCacheClusterOfflineSample()Get theSampledCounterfor offline cache cluster events.SampledCountergetCacheClusterOnlineSample()Get theSampledCounterfor online cache cluster events.SampledCountergetCacheClusterRejoinSample()Get theSampledCounterfor rejoin cache cluster events.SampledCountergetCacheElementEvictedSample()Get theSampledCounterelement evicted from cache.SampledCountergetCacheElementExpiredSample()Get theSampledCounterelement expired from cache.SampledCountergetCacheElementPutSample()Get theSampledCounterelement puts in the cache.SampledCountergetCacheElementRemovedSample()Get theSampledCounterelement removed from cache.SampledCountergetCacheElementUpdatedSample()Get theSampledCounterelement updates , i.e.longgetCacheEvictionRate()Gets the cache eviction rate.longgetCacheExpirationRate()Gets the cache expiration rate.SampledCountergetCacheHitInMemorySample()Get theSampledCounterfor in-memory cache hit.SampledCountergetCacheHitOffHeapSample()Get theSampledCounterfor off-heap cache hit.SampledCountergetCacheHitOnDiskSample()Get theSampledCounterfor on-disk cache hit.longgetCacheHitRate()Gets the cache hit rate.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.SampledCountergetCacheMissExpiredSample()Get theSampledCounterfor cache miss as result of the element getting expired.SampledCountergetCacheMissInMemorySample()Get theSampledCounterfor in-memory cache miss.SampledCountergetCacheMissNotFoundSample()Get theSampledCounterfor cache miss as result of the element not found in cache.SampledCountergetCacheMissOffHeapSample()Get theSampledCounterfor off-heap cache miss.SampledCountergetCacheMissOnDiskSample()Get theSampledCounterfor on-disk cache miss.longgetCacheMissRate()Gets the cache miss rate.SampledCountergetCacheMissSample()Get theSampledCounterfor cache miss.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.SampledCountergetCacheXaCommitsSample()Get theSampledCounterfor number of XA Transaction commits that have completed in the interval.SampledCountergetCacheXaRollbacksSample()Get theSampledCounterfor number of XA Transaction rollbacks that have completed in the interval.longgetDiskExpiryThreadIntervalSeconds()Configuration property accessorbooleangetHasWriteBehindWriter()Is there a registered Write-behind CacheWriter.SampledCountergetLocalDiskSizeInBytesSample()Get theSampledCounterfor local disk size in bytes.SampledCountergetLocalDiskSizeSample()Get theSampledCounterfor local disk size.SampledCountergetLocalHeapSizeInBytesSample()Get theSampledCounterfor local heap size in bytes.SampledCountergetLocalHeapSizeSample()Get theSampledCounterfor local heap size.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.StringgetMemoryStoreEvictionPolicy()Configuration property accessor.longgetMostRecentRejoinTimeStampMillis()Get the timestamp in nanos of the last rejoin.SampledCountergetMostRecentRejoinTimestampMillisSample()Get theSampledCounterfor last rejoin timestamp.longgetNonStopFailureRate()Gets the non stop failure most recent sample.SampledCountergetNonStopFailureSample()Gets the nonstop failure sample.longgetNonStopRejoinTimeoutRate()Gets the non stop rejoin most recent sample.SampledCountergetNonStopRejoinTimeoutSample()Gets the nonstop rejoin sample.longgetNonStopSuccessRate()Gets the non stop success most recent sample.SampledCountergetNonStopSuccessSample()Gets the nonstop success sample.longgetNonStopTimeoutRate()Gets the non stop timeout most recent sample.SampledCountergetNonStopTimeoutSample()Gets the nonstop timeout sample.java.lang.StringgetPersistenceStrategy()getPersistenceStrategyjava.lang.StringgetPinnedToStore()Configuration property accessor.SampledCountergetPutIfAbsentMissSample()Gets the putIfAbsent miss sampleSampledCountergetPutIfAbsentSuccessSample()Gets the putIfAbsent success sampleSampledCountergetRemoteSizeSample()Get theSampledCounterfor remote size.SampledCountergetRemoveElementMissSample()Gets the removeElement miss sampleSampledCountergetRemoveElementSuccessSample()Gets the removeElement success sampleSampledCountergetReplaceOneArgMissSample()Gets the one arg replace miss sampleSampledCountergetReplaceOneArgSuccessSample()Gets the one arg replace success sampleSampledCountergetReplaceTwoArgMissSample()Gets the two arg replace miss sampleSampledCountergetReplaceTwoArgSuccessSample()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.SampledCountergetSearchesPerSecondSample()Get theSampledCounterfor number of searches that have finished in the interval.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.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.booleanisClusterBulkLoadEnabled()Is the cache in bulk-load mode cluster-wide?.booleanisDiskPersistent()Configuration property accessor.booleanisEnabled()Is the cache enabled?.booleanisEternal()Configuration property accessor.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?.voidremoveAll()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.-
Methods inherited from interface net.sf.ehcache.management.sampled.LegacyCacheStatistics
dispose, getAverageGetTimeNanos, getAverageGetTimeNanosMostRecentSample, getAverageSearchTimeNanos, getCacheClusterOfflineCount, getCacheClusterOfflineMostRecentSample, getCacheClusterOnlineCount, getCacheClusterOnlineMostRecentSample, getCacheClusterRejoinCount, getCacheClusterRejoinMostRecentSample, getCacheElementEvictedMostRecentSample, getCacheElementExpiredMostRecentSample, getCacheElementPutMostRecentSample, getCacheElementRemovedMostRecentSample, getCacheElementUpdatedMostRecentSample, getCacheHitCount, getCacheHitInMemoryMostRecentSample, getCacheHitMostRecentSample, getCacheHitOffHeapMostRecentSample, getCacheHitOnDiskMostRecentSample, getCacheHitRatio, getCacheHitRatioMostRecentSample, getCacheMissCount, getCacheMissCountExpired, getCacheMissExpiredMostRecentSample, getCacheMissInMemoryMostRecentSample, getCacheMissMostRecentSample, getCacheMissNotFoundMostRecentSample, getCacheMissOffHeapMostRecentSample, getCacheMissOnDiskMostRecentSample, getCacheName, getCacheXaCommitsMostRecentSample, getCacheXaRollbacksMostRecentSample, getEvictedCount, getExpiredCount, getInMemoryHitCount, getInMemoryMissCount, getInMemorySize, getLocalDiskSize, getLocalDiskSizeInBytes, getLocalHeapSize, getLocalHeapSizeInBytes, getLocalOffHeapSize, getLocalOffHeapSizeInBytes, getMaxGetTimeNanos, getMinGetTimeNanos, getNonStopFailureCount, getNonStopFailureMostRecentSample, getNonStopRejoinTimeoutCount, getNonStopRejoinTimeoutMostRecentSample, getNonStopSuccessCount, getNonStopSuccessMostRecentSample, getNonStopTimeoutCount, getNonStopTimeoutMostRecentSample, getNonstopTimeoutRatio, getOffHeapHitCount, getOffHeapMissCount, getOffHeapSize, getOnDiskHitCount, getOnDiskMissCount, getOnDiskSize, getPutCount, getPutIfAbsentMissCount, getPutIfAbsentMissRate, getPutIfAbsentSuccessCount, getPutIfAbsentSuccessRate, getRemovedCount, getRemoveElementMissCount, getRemoveElementMissRate, getRemoveElementSuccessCount, getRemoveElementSuccessRate, getReplaceOneArgMissCount, getReplaceOneArgMissRate, getReplaceOneArgSuccessCount, getReplaceOneArgSuccessRate, getReplaceTwoArgMissCount, getReplaceTwoArgMissRate, getReplaceTwoArgSuccessCount, getReplaceTwoArgSuccessRate, getSearchesPerSecond, getSize, getUpdateCount, getXaCommitCount, getXaRecoveredCount, getXaRollbackCount, isLocalHeapCountBased
-
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Is the cache enabled?.- Returns:
- true, if is enabled
-
setNodeBulkLoadEnabled
void setNodeBulkLoadEnabled(boolean bulkLoadEnabled)
Enabled/disable bulk-load mode for this node.- Parameters:
bulkLoadEnabled- the new node bulk load enabled
-
isClusterBulkLoadEnabled
boolean isClusterBulkLoadEnabled()
Is the cache in bulk-load mode cluster-wide?.- Returns:
- true, if is cluster bulk load enabled
-
isNodeBulkLoadEnabled
boolean isNodeBulkLoadEnabled()
Is the cache in bulk-load mode locally?.- Returns:
- true, if is node bulk load enabled
-
setEnabled
void setEnabled(boolean enabled)
Enabled/disable the cache.- Parameters:
enabled- the new enabled
-
removeAll
void removeAll()
Removes all cached items.
-
flush
void flush()
Flushes all cache items from memory to the disk store, and from the DiskStore to disk.
-
getStatus
java.lang.String getStatus()
Gets the status attribute of the Cache.- Returns:
- The status value from the Status enum class
-
isTerracottaClustered
boolean isTerracottaClustered()
Is the cache configured with Terracotta clustering?.- Returns:
- true if clustered with terracotta
-
getTerracottaConsistency
java.lang.String getTerracottaConsistency()
Returns a textual description of a Terracotta-clustered cache's consistency mode.- Returns:
- "STRONG", "EVENTUAL", or "na" if the cache is not Terracotta-clustered
-
getMaxEntriesLocalHeap
long getMaxEntriesLocalHeap()
Configuration property accessor.- Returns:
- Max entries local heap config setting value
-
setMaxEntriesLocalHeap
void setMaxEntriesLocalHeap(long maxEntries)
setMaxEntriesLocalHeap.- Parameters:
maxEntries- the new max entries local heap
-
getMaxBytesLocalHeap
long getMaxBytesLocalHeap()
Configuration property accessor.- Returns:
- Max bytes local heap config setting value
-
setMaxBytesLocalHeap
void setMaxBytesLocalHeap(long maxBytes)
setMaxBytesLocalHeap.- Parameters:
maxBytes- the new max bytes local heap
-
setMaxBytesLocalHeapAsString
void setMaxBytesLocalHeapAsString(java.lang.String maxBytes)
setMaxBytesLocalHeap.- Parameters:
maxBytes- the new max bytes local heap as string
-
getMaxBytesLocalHeapAsString
java.lang.String getMaxBytesLocalHeapAsString()
Configuration property accessor.- Returns:
- Max bytes local heap config setting value as string
-
getMaxBytesLocalOffHeap
long getMaxBytesLocalOffHeap()
Configuration property accessor.- Returns:
- Max bytes local offheap config setting value
-
getMaxBytesLocalOffHeapAsString
java.lang.String getMaxBytesLocalOffHeapAsString()
Configuration property accessor.- Returns:
- Max bytes local offheap config setting value as string
-
getMaxEntriesLocalDisk
long getMaxEntriesLocalDisk()
Configuration property accessor.- Returns:
- Max entries local disk config setting value
-
setMaxEntriesLocalDisk
void setMaxEntriesLocalDisk(long maxEntries)
setMaxEntriesLocalDisk.- Parameters:
maxEntries- the new max entries local disk
-
getMaxElementsOnDisk
int getMaxElementsOnDisk()
Configuration property accessor.- Returns:
- Max elements on disk config setting value
-
getMaxEntriesInCache
long getMaxEntriesInCache()
Configuration property accessor.- Returns:
- Max entries in cache config setting value
-
setMaxElementsOnDisk
void setMaxElementsOnDisk(int maxElements)
setMaxElementsOnDisk.- Parameters:
maxElements- the new max elements on disk
-
setMaxEntriesInCache
void setMaxEntriesInCache(long maxEntries)
setMaxEntriesInCache.- Parameters:
maxEntries- the new max entries in cache
-
getMaxBytesLocalDisk
long getMaxBytesLocalDisk()
Configuration property accessor.- Returns:
- Max bytes local disk config setting value
-
setMaxBytesLocalDisk
void setMaxBytesLocalDisk(long maxBytes)
setMaxBytesLocalDisk.- Parameters:
maxBytes- the new max bytes local disk
-
setMaxBytesLocalDiskAsString
void setMaxBytesLocalDiskAsString(java.lang.String maxBytes)
setMaxBytesLocalDisk.- Parameters:
maxBytes- the new max bytes local disk as string
-
getMaxBytesLocalDiskAsString
java.lang.String getMaxBytesLocalDiskAsString()
Configuration property accessor.- Returns:
- Max bytes local disk config setting value as string
-
getMemoryStoreEvictionPolicy
java.lang.String getMemoryStoreEvictionPolicy()
Configuration property accessor.- Returns:
- a String representation of the policy
-
setMemoryStoreEvictionPolicy
void setMemoryStoreEvictionPolicy(java.lang.String evictionPolicy)
setMemoryStoreEvictionPolicy.- Parameters:
evictionPolicy- the new memory store eviction policy
-
isEternal
boolean isEternal()
Configuration property accessor.- Returns:
- true if set to eternal in config
-
setEternal
void setEternal(boolean eternal)
setEternal.- Parameters:
eternal- the new eternal
-
getTimeToIdleSeconds
long getTimeToIdleSeconds()
Configuration property accessor.- Returns:
- TTI in config
-
setTimeToIdleSeconds
void setTimeToIdleSeconds(long tti)
setTimeToIdleSeconds.- Parameters:
tti- the new time to idle seconds
-
getTimeToLiveSeconds
long getTimeToLiveSeconds()
Configuration property accessor.- Returns:
- TTL in config
-
setTimeToLiveSeconds
void setTimeToLiveSeconds(long ttl)
setTimeToLiveSeconds.- Parameters:
ttl- the new time to live seconds
-
isOverflowToDisk
boolean isOverflowToDisk()
Configuration property accessor.- Returns:
- true if overflow to disk specified in config
-
setOverflowToDisk
void setOverflowToDisk(boolean overflowToDisk)
setOverflowToDisk.- Parameters:
overflowToDisk- the new overflow to disk
-
isDiskPersistent
boolean isDiskPersistent()
Configuration property accessor.- Returns:
- true if configured with disk persistence
-
setDiskPersistent
void setDiskPersistent(boolean diskPersistent)
setDiskPersistent.- Parameters:
diskPersistent- the new disk persistent
-
isOverflowToOffHeap
boolean isOverflowToOffHeap()
isOverflowToOffHeap- Returns:
- true if configured for offheap
-
getPersistenceStrategy
java.lang.String getPersistenceStrategy()
getPersistenceStrategy- Returns:
- the strategy name
- See Also:
PersistenceConfiguration
-
getDiskExpiryThreadIntervalSeconds
long getDiskExpiryThreadIntervalSeconds()
Configuration property accessor- Returns:
- Value for disk expiry thread interval in seconds specified in config
-
setDiskExpiryThreadIntervalSeconds
void setDiskExpiryThreadIntervalSeconds(long seconds)
setDiskExpiryThreadIntervalSeconds.- Parameters:
seconds- the new disk expiry thread interval seconds
-
isLoggingEnabled
boolean isLoggingEnabled()
Configuration property accessor.- Returns:
- true if logging is enabled on the cache
-
setLoggingEnabled
void setLoggingEnabled(boolean enabled)
setLoggingEnabled.- Parameters:
enabled- the new logging enabled
-
isPinned
boolean isPinned()
Configuration property accessor.- Returns:
- true if the cache is pinned
- See Also:
PinningConfiguration
-
getPinnedToStore
java.lang.String getPinnedToStore()
Configuration property accessor.- Returns:
- the store to which this cache is pinned
- See Also:
PinningConfiguration
-
getHasWriteBehindWriter
boolean getHasWriteBehindWriter()
Is there a registered Write-behind CacheWriter.- Returns:
- the checks for write behind writer
-
getWriterQueueLength
long getWriterQueueLength()
Returns the total length of all write-behind queues for this cache.- Specified by:
getWriterQueueLengthin interfaceLegacyCacheStatistics- Returns:
- writer-behind queue length
-
getMostRecentRejoinTimeStampMillis
long getMostRecentRejoinTimeStampMillis()
Get the timestamp in nanos of the last rejoin.- Returns:
- the most recent rejoin time stamp millis
-
getWriterMaxQueueSize
int getWriterMaxQueueSize()
Returns the maximum size of any write-behind queues.- Returns:
- Maximum elements that can be queued for processing by the write-behind writer
- See Also:
CacheWriterConfiguration.getWriteBehindMaxQueueSize()
-
getWriterConcurrency
int getWriterConcurrency()
Returns the number of configured write-behind queues/threads.- Returns:
- Number of configured processing queues/threads for use by the write-behind writer
- See Also:
CacheWriterConfiguration.getWriteBehindConcurrency()
-
getTransactional
boolean getTransactional()
Is the cache a transactional one.- Returns:
- the transactional
- See Also:
CacheConfiguration.TransactionalMode
-
getTransactionCommitRate
long getTransactionCommitRate()
Gets the transaction commit rate.- Returns:
- Xa commit rate
-
getTransactionRollbackRate
long getTransactionRollbackRate()
Gets the transaction rollback rate.- Returns:
- Xa rollback rate
-
getSearchable
boolean getSearchable()
Is the cache configured for search.- Returns:
- the searchable
- See Also:
Searchable
-
getSearchAttributes
java.util.Map<java.lang.String,java.lang.String> getSearchAttributes()
Get the declared search attributes and their type names. Note: doesn't deal with DynamicAttributeExctractor.- Returns:
- map of search attribute name
->type name
-
getCacheSearchRate
long getCacheSearchRate()
Gets the cache search rate.- Returns:
- search rate
-
getAverageSearchTime
long getAverageSearchTime()
Gets the average search time.- Returns:
- search time
-
getCacheHitRate
long getCacheHitRate()
Gets the cache hit rate.- Returns:
- hit rate
-
getCacheInMemoryHitRate
long getCacheInMemoryHitRate()
Gets the cache in memory hit rate.- Returns:
- in-memory hit rate
-
getCacheOffHeapHitRate
long getCacheOffHeapHitRate()
Gets the cache off heap hit rate.- Returns:
- off-heap hit rate
-
getCacheOnDiskHitRate
long getCacheOnDiskHitRate()
Gets the cache on disk hit rate.- Returns:
- on-disk hit rate
-
getCacheMissRate
long getCacheMissRate()
Gets the cache miss rate.- Returns:
- miss rate
-
getCacheInMemoryMissRate
long getCacheInMemoryMissRate()
Gets the cache in memory miss rate.- Returns:
- in-memory miss rate
-
getCacheOffHeapMissRate
long getCacheOffHeapMissRate()
Gets the cache off heap miss rate.- Returns:
- off-heap miss rate
-
getCacheOnDiskMissRate
long getCacheOnDiskMissRate()
Gets the cache on disk miss rate.- Returns:
- on-disk miss rate
-
getCachePutRate
long getCachePutRate()
Gets the cache put rate.- Returns:
- put rate
-
getCacheUpdateRate
long getCacheUpdateRate()
Gets the cache update rate.- Returns:
- update rate
-
getCacheRemoveRate
long getCacheRemoveRate()
Gets the cache remove rate.- Returns:
- remove rate
-
getCacheEvictionRate
long getCacheEvictionRate()
Gets the cache eviction rate.- Returns:
- eviction rate
-
getCacheExpirationRate
long getCacheExpirationRate()
Gets the cache expiration rate.- Returns:
- expiration rate
-
getAverageGetTime
long getAverageGetTime()
Gets the average get time.- Returns:
- average get time (nanos.)
-
getCacheHitSample
SampledCounter getCacheHitSample()
Get theSampledCounterfor cache hit.- Returns:
- the
SampledCounterfor cache hit count
-
getCacheHitRatioSample
SampledCounter getCacheHitRatioSample()
Get theSampledCounterfor cache hit ratio.- Returns:
- the
SampledCounterfor cache hit ratio
-
getCacheHitInMemorySample
SampledCounter getCacheHitInMemorySample()
Get theSampledCounterfor in-memory cache hit.- Returns:
- the
SampledCounterfor cache hit count in memory
-
getCacheHitOffHeapSample
SampledCounter getCacheHitOffHeapSample()
Get theSampledCounterfor off-heap cache hit.- Returns:
- the
SampledCounterfor cache hit count in off-heap
-
getCacheHitOnDiskSample
SampledCounter getCacheHitOnDiskSample()
Get theSampledCounterfor on-disk cache hit.- Returns:
- the
SampledCounterfor cache hit count on disk
-
getCacheMissSample
SampledCounter getCacheMissSample()
Get theSampledCounterfor cache miss.- Returns:
- the
SampledCounterfor cache miss count
-
getCacheMissInMemorySample
SampledCounter getCacheMissInMemorySample()
Get theSampledCounterfor in-memory cache miss.- Returns:
- the
SampledCounterfor cache miss count in memory
-
getCacheMissOffHeapSample
SampledCounter getCacheMissOffHeapSample()
Get theSampledCounterfor off-heap cache miss.- Returns:
- the
SampledCounterfor cache miss count in off-heap
-
getCacheMissOnDiskSample
SampledCounter getCacheMissOnDiskSample()
Get theSampledCounterfor on-disk cache miss.- Returns:
- the
SampledCounterfor cache miss count on disk
-
getCacheMissExpiredSample
SampledCounter getCacheMissExpiredSample()
Get theSampledCounterfor cache miss as result of the element getting expired.- Returns:
- the
SampledCounterfor cache miss count and the reason for miss being the element got expired
-
getCacheMissNotFoundSample
SampledCounter getCacheMissNotFoundSample()
Get theSampledCounterfor cache miss as result of the element not found in cache.- Returns:
- the
SampledCounterfor cache miss not found count
-
getCacheElementEvictedSample
SampledCounter getCacheElementEvictedSample()
Get theSampledCounterelement evicted from cache.- Returns:
- the
SampledCounterfor element evicted count
-
getCacheElementRemovedSample
SampledCounter getCacheElementRemovedSample()
Get theSampledCounterelement removed from cache.- Returns:
- the
SampledCounterfor element removed count
-
getCacheElementExpiredSample
SampledCounter getCacheElementExpiredSample()
Get theSampledCounterelement expired from cache.- Returns:
- Most recent value for element expired count
-
getCacheElementPutSample
SampledCounter getCacheElementPutSample()
Get theSampledCounterelement puts in the cache.- Returns:
- the
SampledCounterfor number of element puts
-
getCacheElementUpdatedSample
SampledCounter getCacheElementUpdatedSample()
Get theSampledCounterelement updates , i.e. put() on elements with already existing keys in the cache- Returns:
- the
SampledCounterd value for element update count
-
getAverageGetTimeSample
SampledRateCounter getAverageGetTimeSample()
Get theSampledRateCounterfor average time taken for get() operation in the cache.- Returns:
- the
SampledRateCounterof average get time taken for a get operation
-
getAverageSearchTimeSample
SampledRateCounter getAverageSearchTimeSample()
Get theSampledRateCounterfor average search execution time for searches finishing within the last sample period.- Returns:
- the
SampledRateCounterof average search time taken
-
getSearchesPerSecondSample
SampledCounter getSearchesPerSecondSample()
Get theSampledCounterfor number of searches that have finished in the interval.- Returns:
- the
SampledCounterfor number of searches
-
getCacheXaCommitsSample
SampledCounter getCacheXaCommitsSample()
Get theSampledCounterfor number of XA Transaction commits that have completed in the interval.- Returns:
- the
SampledCounterfor number XA Transaction commits
-
getCacheXaRollbacksSample
SampledCounter getCacheXaRollbacksSample()
Get theSampledCounterfor number of XA Transaction rollbacks that have completed in the interval.- Returns:
- the
SampledCounterfor number XA Transaction rollbacks
-
getSizeSample
SampledCounter getSizeSample()
Get theSampledCounterfor cache size.- Returns:
- the
SampledCounterfor cache size
-
getLocalHeapSizeSample
SampledCounter getLocalHeapSizeSample()
Get theSampledCounterfor local heap size.- Returns:
- the
SampledCounterfor local heap size
-
getLocalHeapSizeInBytesSample
SampledCounter getLocalHeapSizeInBytesSample()
Get theSampledCounterfor local heap size in bytes.- Returns:
- the
SampledCounterfor local heap size in bytes
-
getLocalOffHeapSizeSample
SampledCounter getLocalOffHeapSizeSample()
Get theSampledCounterfor local offheap size.- Returns:
- the
SampledCounterfor local offheap size
-
getLocalOffHeapSizeInBytesSample
SampledCounter getLocalOffHeapSizeInBytesSample()
Get theSampledCounterfor local offheap size in bytes.- Returns:
- the
SampledCounterfor local offheap size in bytes
-
getLocalDiskSizeSample
SampledCounter getLocalDiskSizeSample()
Get theSampledCounterfor local disk size.- Returns:
- the
SampledCounterfor local disk size
-
getLocalDiskSizeInBytesSample
SampledCounter getLocalDiskSizeInBytesSample()
Get theSampledCounterfor local disk size in bytes.- Returns:
- the
SampledCounterfor local disk size in bytes
-
getRemoteSizeSample
SampledCounter getRemoteSizeSample()
Get theSampledCounterfor remote size.- Returns:
- the
SampledCounterfor remote size
-
getWriterQueueLengthSample
SampledCounter getWriterQueueLengthSample()
Get theSampledCounterfor writer queue length.- Returns:
- the
SampledCounterfor writer queue length
-
getMostRecentRejoinTimestampMillisSample
SampledCounter getMostRecentRejoinTimestampMillisSample()
Get theSampledCounterfor last rejoin timestamp.- Returns:
- the
SampledCounterfor last rejoin timestamp
-
getCacheClusterOfflineSample
SampledCounter getCacheClusterOfflineSample()
Get theSampledCounterfor offline cache cluster events.- Returns:
- the
SampledCounterfor offline cache cluster events
-
getCacheClusterOnlineSample
SampledCounter getCacheClusterOnlineSample()
Get theSampledCounterfor online cache cluster events.- Returns:
- the
SampledCounterfor online cache cluster events
-
getCacheClusterRejoinSample
SampledCounter getCacheClusterRejoinSample()
Get theSampledCounterfor rejoin cache cluster events.- Returns:
- the
SampledCounterfor rejoin cache cluster events
-
getNonStopSuccessSample
SampledCounter getNonStopSuccessSample()
Gets the nonstop success sample.- Returns:
- the nonstop success sample
-
getNonStopFailureSample
SampledCounter getNonStopFailureSample()
Gets the nonstop failure sample.- Returns:
- the nonstop failure sample
-
getNonStopRejoinTimeoutSample
SampledCounter getNonStopRejoinTimeoutSample()
Gets the nonstop rejoin sample.- Returns:
- the nonstop rejoin sample
-
getNonStopTimeoutSample
SampledCounter getNonStopTimeoutSample()
Gets the nonstop timeout sample.- Returns:
- the nonstop timeout sample
-
getNonStopSuccessRate
long getNonStopSuccessRate()
Gets the non stop success most recent sample.- Returns:
- the non stop success most recent sample
-
getNonStopFailureRate
long getNonStopFailureRate()
Gets the non stop failure most recent sample.- Returns:
- the non stop failure most recent sample
-
getNonStopRejoinTimeoutRate
long getNonStopRejoinTimeoutRate()
Gets the non stop rejoin most recent sample.- Returns:
- the non stop rejoin most recent sample
-
getNonStopTimeoutRate
long getNonStopTimeoutRate()
Gets the non stop timeout most recent sample.- Returns:
- the non stop timeout most recent sample
-
getReplaceOneArgSuccessSample
SampledCounter getReplaceOneArgSuccessSample()
Gets the one arg replace success sample- Returns:
- one arg success sample
-
getReplaceOneArgMissSample
SampledCounter getReplaceOneArgMissSample()
Gets the one arg replace miss sample- Returns:
- one arg miss sample
-
getReplaceTwoArgSuccessSample
SampledCounter getReplaceTwoArgSuccessSample()
Gets the two arg replace success sample- Returns:
- two arg success sample
-
getReplaceTwoArgMissSample
SampledCounter getReplaceTwoArgMissSample()
Gets the two arg replace miss sample- Returns:
- two arg miss sample
-
getPutIfAbsentSuccessSample
SampledCounter getPutIfAbsentSuccessSample()
Gets the putIfAbsent success sample- Returns:
- putIfAbsent success sample
-
getPutIfAbsentMissSample
SampledCounter getPutIfAbsentMissSample()
Gets the putIfAbsent miss sample- Returns:
- putIfAbsent miss sample
-
getRemoveElementSuccessSample
SampledCounter getRemoveElementSuccessSample()
Gets the removeElement success sample- Returns:
- removeElement success sample
-
getRemoveElementMissSample
SampledCounter getRemoveElementMissSample()
Gets the removeElement miss sample- Returns:
- removeElement miss sample
-
-