|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.management.sampled.CacheSamplerImpl
public class CacheSamplerImpl
An implementation of CacheSampler
Constructor Summary | |
---|---|
CacheSamplerImpl(Ehcache cache)
Constructor accepting the backing Ehcache |
Method Summary | |
---|---|
void |
deregistered(CacheConfiguration config)
Indicates that this listener was removed from the given configuration |
void |
diskCapacityChanged(int oldCapacity,
int newCapacity)
Indicates a change in the configurations disk store capacity |
void |
dispose()
Method used to dispose this statistics |
void |
flush()
Flushes all cache items from memory to the disk store, and from the DiskStore to disk. |
long |
getAverageGetTime()
|
long |
getAverageGetTimeNanos()
Average time in nanoseconds taken to get an element from the cache. |
long |
getAverageGetTimeNanosMostRecentSample()
Get most recent value for average time taken for get() operation in the cache |
SampledRateCounter |
getAverageGetTimeSample()
Get the SampledRateCounter for average time taken for get() operation in the
cache |
long |
getAverageSearchTime()
|
long |
getAverageSearchTimeNanos()
Get the average search execution time for searches finishing within the last sample period |
SampledRateCounter |
getAverageSearchTimeSample()
Get the SampledRateCounter for average search execution time for searches finishing within the last sample period |
long |
getCacheElementEvictedMostRecentSample()
Get most recent value element evicted from cache |
SampledCounter |
getCacheElementEvictedSample()
Get the SampledCounter element evicted from cache |
long |
getCacheElementExpiredMostRecentSample()
Get most recent value element expired from cache |
SampledCounter |
getCacheElementExpiredSample()
Get the SampledCounter element expired from cache |
long |
getCacheElementPutMostRecentSample()
Get most recent value element puts in the cache |
SampledCounter |
getCacheElementPutSample()
Get the SampledCounter element puts in the cache |
long |
getCacheElementRemovedMostRecentSample()
Get most recent value element removed from cache |
SampledCounter |
getCacheElementRemovedSample()
Get the SampledCounter element removed from cache |
long |
getCacheElementUpdatedMostRecentSample()
Get most recent value element updates , i.e. |
SampledCounter |
getCacheElementUpdatedSample()
Get the SampledCounter element updates , i.e. |
long |
getCacheEvictionRate()
|
long |
getCacheExpirationRate()
|
long |
getCacheHitCount()
The number of times a requested item was found in the cache. |
long |
getCacheHitInMemoryMostRecentSample()
Get most recent value for in-memory cache hit |
SampledCounter |
getCacheHitInMemorySample()
Get the SampledCounter for in-memory cache hit |
long |
getCacheHitMostRecentSample()
Get most recent value for cache hit |
long |
getCacheHitOffHeapMostRecentSample()
Get most recent value for off-heap cache hit |
SampledCounter |
getCacheHitOffHeapSample()
Get the SampledCounter for off-heap cache hit |
long |
getCacheHitOnDiskMostRecentSample()
Get most recent value for on-disk cache hit |
SampledCounter |
getCacheHitOnDiskSample()
Get the SampledCounter for on-disk cache hit |
long |
getCacheHitRate()
|
int |
getCacheHitRatio()
The ratio of hits to accesses (hits + misses). |
int |
getCacheHitRatioMostRecentSample()
Get most recent value for cache hit ratio |
SampledCounter |
getCacheHitRatioSample()
Get the SampledCounter for cache hit ratio |
SampledCounter |
getCacheHitSample()
Get the SampledCounter for cache hit |
long |
getCacheInMemoryHitRate()
|
long |
getCacheInMemoryMissRate()
|
long |
getCacheMissCount()
Number of times a requested element was not found in the cache. |
long |
getCacheMissCountExpired()
|
long |
getCacheMissExpiredMostRecentSample()
Get most recent value for cache miss as result of the element getting expired |
SampledCounter |
getCacheMissExpiredSample()
Get the SampledCounter for cache miss as result of the element getting
expired |
long |
getCacheMissInMemoryMostRecentSample()
Get most recent value for in-memory cache miss |
SampledCounter |
getCacheMissInMemorySample()
Get the SampledCounter for in-memory cache miss |
long |
getCacheMissMostRecentSample()
Get most recent value for cache miss |
long |
getCacheMissNotFoundMostRecentSample()
Get most recent value for cache miss as result of the element not found in cache |
SampledCounter |
getCacheMissNotFoundSample()
Get the SampledCounter for cache miss as result of the element not found
in cache |
long |
getCacheMissOffHeapMostRecentSample()
Get most recent value for off-heap cache miss |
SampledCounter |
getCacheMissOffHeapSample()
Get the SampledCounter for off-heap cache miss |
long |
getCacheMissOnDiskMostRecentSample()
Get most recent value for on-disk cache miss |
SampledCounter |
getCacheMissOnDiskSample()
Get the SampledCounter for on-disk cache miss |
long |
getCacheMissRate()
|
SampledCounter |
getCacheMissSample()
Get the SampledCounter for cache miss |
String |
getCacheName()
|
long |
getCacheOffHeapHitRate()
|
long |
getCacheOffHeapMissRate()
|
long |
getCacheOnDiskHitRate()
|
long |
getCacheOnDiskMissRate()
|
long |
getCachePutRate()
|
long |
getCacheRemoveRate()
|
long |
getCacheSearchRate()
|
long |
getCacheUpdateRate()
|
long |
getCacheXaCommitsMostRecentSample()
Get most recent value of XA commits |
SampledCounter |
getCacheXaCommitsSample()
Get the SampledCounter for number of XA Transaction commits that have completed in the interval |
long |
getCacheXaRollbacksMostRecentSample()
Get most recent value of XA rollbacks |
SampledCounter |
getCacheXaRollbacksSample()
Get the SampledCounter for number of XA Transaction rollbacks that have completed in the interval |
long |
getDiskExpiryThreadIntervalSeconds()
Configuration property accessor |
long |
getEvictedCount()
Number of elements evicted from the cache |
long |
getExpiredCount()
Number of elements expired since creation or last clear |
boolean |
getHasWriteBehindWriter()
Is there a registered Write-behind CacheWriter |
long |
getInMemoryHitCount()
Number of times a requested item was found in the Memory Store. |
long |
getInMemoryMissCount()
Number of times a requested item was not found in the Memory Store. |
long |
getInMemorySize()
Number of elements in the MemoryStore |
long |
getLocalDiskSize()
Number of entries in the DiskStore |
long |
getLocalDiskSizeInBytes()
Number of of bytes used by entries in the DiskStore |
long |
getLocalHeapSize()
Number of entries in the MemoryStore |
long |
getLocalHeapSizeInBytes()
Number of of bytes used by entries in the MemoryStore |
long |
getLocalOffHeapSize()
Number of entries in the off-heap store |
long |
getLocalOffHeapSizeInBytes()
Number of of bytes used by entries in the off-heap store |
long |
getMaxBytesLocalDisk()
Configuration property accessor |
String |
getMaxBytesLocalDiskAsString()
Configuration property accessor |
long |
getMaxBytesLocalHeap()
Configuration property accessor |
String |
getMaxBytesLocalHeapAsString()
Configuration property accessor |
long |
getMaxBytesLocalOffHeap()
Configuration property accessor |
String |
getMaxBytesLocalOffHeapAsString()
Configuration property accessor |
int |
getMaxElementsOnDisk()
Configuration property accessor |
int |
getMaxEntriesInCache()
Configuration property accessor |
long |
getMaxEntriesLocalDisk()
Configuration property accessor |
long |
getMaxEntriesLocalHeap()
Configuration property accessor |
long |
getMaxGetTimeNanos()
Return maximum time taken for a get operation in the cache in milliseconds |
String |
getMemoryStoreEvictionPolicy()
Configuration property accessor |
long |
getMinGetTimeNanos()
Return minimum time taken for a get operation in the cache in nanoseconds |
long |
getOffHeapHitCount()
Number of times a requested item was found in the off-heap store. |
long |
getOffHeapMissCount()
Number of times a requested item was not found in the off-heap store. |
long |
getOffHeapSize()
Deprecated. use getLocalOffHeapSize() |
long |
getOnDiskHitCount()
Number of times a requested item was found in the Disk Store. |
long |
getOnDiskMissCount()
Number of times a requested item was not found in the Disk Store. |
long |
getOnDiskSize()
Deprecated. use getLocalDiskSize() |
String |
getPinnedToStore()
Configuration property accessor |
long |
getPutCount()
Number of puts that has happened in the cache |
long |
getRemovedCount()
Number of elements removed since creation or last clear |
boolean |
getSearchable()
Is the cache configured for search |
long |
getSearchesPerSecond()
Get the number of searches that have finished execution in the last second |
SampledCounter |
getSearchesPerSecondSample()
Get the SampledCounter for number of searches that have finished in the interval |
long |
getSize()
Size of the cache based on current accuracy settings. |
String |
getStatus()
Gets the status attribute of the Cache. |
String |
getTerracottaConsistency()
Returns a textual description of a Terracotta-clustered cache's consistency mode. |
long |
getTimeToIdleSeconds()
Configuration property accessor |
long |
getTimeToLiveSeconds()
Configuration property accessor |
boolean |
getTransactional()
Is the cache a transactional one |
long |
getTransactionCommitRate()
|
long |
getTransactionRollbackRate()
|
long |
getUpdateCount()
Number of updates that as happened in the cache |
int |
getWriterConcurrency()
Returns the number of configured write-behind queues/threads. |
int |
getWriterMaxQueueSize()
Returns the maximum size of any write-behind queues. |
long |
getWriterQueueLength()
Returns the total length of all write-behind queues for this cache |
long |
getXaCommitCount()
Return the Cache's XAResource commit calls count |
long |
getXaRecoveredCount()
Return the Cache's XAResource recovered XIDs count |
long |
getXaRollbackCount()
Return the Cache's XAResource rollback calls count |
boolean |
isClusterBulkLoadEnabled()
Is the cache in bulk-load mode cluster-wide? |
boolean |
isDiskPersistent()
Configuration property accessor |
boolean |
isEnabled()
Is the cache enabled? |
boolean |
isEternal()
Configuration property accessor |
boolean |
isLoggingEnabled()
Configuration property accessor |
boolean |
isNodeBulkLoadEnabled()
Is the cache in bulk-load mode locally? |
boolean |
isOverflowToDisk()
Configuration property accessor |
boolean |
isPinned()
Configuration property accessor |
boolean |
isTerracottaClustered()
Is the cache configured with Terracotta clustering? |
void |
loggingChanged(boolean oldValue,
boolean newValue)
Indicates a change in the configuration for enable/disable logging |
void |
maxBytesLocalDiskChanged(long oldValue,
long newValue)
Indicates a change in the configuration for maxBytesLocalDisk setting |
void |
maxBytesLocalHeapChanged(long oldValue,
long newValue)
Indicates a change in the configuration for maxBytesLocalHeap setting |
void |
maxEntriesInCacheChanged(int oldCapacity,
int newCapacity)
Indicates a change in the configuration for maxEntriesInCache setting |
void |
memoryCapacityChanged(int oldCapacity,
int newCapacity)
Indicates a change in the configurations memory store capacity |
void |
registered(CacheConfiguration config)
Indicates that this listener was registered with the given configuration |
void |
removeAll()
Removes all cached items. |
void |
setDiskExpiryThreadIntervalSeconds(long seconds)
setDiskExpiryThreadIntervalSeconds |
void |
setDiskPersistent(boolean diskPersistent)
setDiskPersistent |
void |
setEnabled(boolean enabled)
Enabled/disable the cache. |
void |
setEternal(boolean eternal)
setEternal |
void |
setLoggingEnabled(boolean enabled)
setLoggingEnabled |
void |
setMaxBytesLocalDisk(long maxBytes)
setMaxBytesLocalDisk |
void |
setMaxBytesLocalDiskAsString(String maxBytes)
setMaxBytesLocalDisk |
void |
setMaxBytesLocalHeap(long maxBytes)
setMaxBytesLocalHeap |
void |
setMaxBytesLocalHeapAsString(String maxBytes)
setMaxBytesLocalHeap |
void |
setMaxElementsOnDisk(int maxElements)
setMaxElementsOnDisk |
void |
setMaxEntriesInCache(int maxEntries)
setMaxEntriesInCache |
void |
setMaxEntriesLocalDisk(long maxEntries)
setMaxEntriesLocalDisk |
void |
setMaxEntriesLocalHeap(long maxEntries)
setMaxEntriesLocalHeap |
void |
setMemoryStoreEvictionPolicy(String evictionPolicy)
setMemoryStoreEvictionPolicy |
void |
setNodeBulkLoadEnabled(boolean bulkLoadEnabled)
Enabled/disable bulk-load mode for this node. |
void |
setOverflowToDisk(boolean overflowToDisk)
setOverflowToDisk |
void |
setTimeToIdleSeconds(long tti)
setTimeToIdleSeconds |
void |
setTimeToLiveSeconds(long ttl)
setTimeToLiveSeconds |
void |
timeToIdleChanged(long oldTimeToIdle,
long newTimeToIdle)
Indicates a change in the configurations time to idle |
void |
timeToLiveChanged(long oldTimeToLive,
long newTimeToLive)
Indicates a change in the configurations time to live |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheSamplerImpl(Ehcache cache)
Ehcache
cache
- the cache object to use in initializing this sampled representationMethod Detail |
---|
public boolean isEnabled()
isEnabled
in interface CacheSampler
public void setEnabled(boolean enabled)
setEnabled
in interface CacheSampler
public boolean isClusterBulkLoadEnabled()
isClusterBulkLoadEnabled
in interface CacheSampler
public boolean isNodeBulkLoadEnabled()
isNodeBulkLoadEnabled
in interface CacheSampler
public void setNodeBulkLoadEnabled(boolean bulkLoadEnabled)
setNodeBulkLoadEnabled
in interface CacheSampler
public void flush()
flush
in interface CacheSampler
public String getCacheName()
getCacheName
in interface LegacyCacheStatistics
public String getStatus()
getStatus
in interface CacheSampler
public void removeAll()
removeAll
in interface CacheSampler
public long getAverageGetTimeNanosMostRecentSample()
getAverageGetTimeNanosMostRecentSample
in interface LegacyCacheStatistics
public long getCacheEvictionRate()
getCacheEvictionRate
in interface CacheSampler
public long getCacheElementEvictedMostRecentSample()
getCacheElementEvictedMostRecentSample
in interface LegacyCacheStatistics
public long getCacheExpirationRate()
getCacheExpirationRate
in interface CacheSampler
public long getCacheElementExpiredMostRecentSample()
getCacheElementExpiredMostRecentSample
in interface LegacyCacheStatistics
public long getCachePutRate()
getCachePutRate
in interface CacheSampler
public long getCacheElementPutMostRecentSample()
getCacheElementPutMostRecentSample
in interface LegacyCacheStatistics
public long getCacheRemoveRate()
getCacheRemoveRate
in interface CacheSampler
public long getCacheElementRemovedMostRecentSample()
getCacheElementRemovedMostRecentSample
in interface LegacyCacheStatistics
public long getCacheUpdateRate()
getCacheUpdateRate
in interface CacheSampler
public long getCacheElementUpdatedMostRecentSample()
getCacheElementUpdatedMostRecentSample
in interface LegacyCacheStatistics
public long getCacheInMemoryHitRate()
getCacheInMemoryHitRate
in interface CacheSampler
public long getCacheHitInMemoryMostRecentSample()
getCacheHitInMemoryMostRecentSample
in interface LegacyCacheStatistics
public long getCacheOffHeapHitRate()
getCacheOffHeapHitRate
in interface CacheSampler
public long getCacheHitOffHeapMostRecentSample()
getCacheHitOffHeapMostRecentSample
in interface LegacyCacheStatistics
public long getCacheHitRate()
getCacheHitRate
in interface CacheSampler
public long getCacheHitMostRecentSample()
getCacheHitMostRecentSample
in interface LegacyCacheStatistics
public long getCacheOnDiskHitRate()
getCacheOnDiskHitRate
in interface CacheSampler
public long getCacheHitOnDiskMostRecentSample()
getCacheHitOnDiskMostRecentSample
in interface LegacyCacheStatistics
public long getCacheMissExpiredMostRecentSample()
getCacheMissExpiredMostRecentSample
in interface LegacyCacheStatistics
public long getCacheMissRate()
getCacheMissRate
in interface CacheSampler
public long getCacheMissMostRecentSample()
getCacheMissMostRecentSample
in interface LegacyCacheStatistics
public long getCacheInMemoryMissRate()
getCacheInMemoryMissRate
in interface CacheSampler
public long getCacheMissInMemoryMostRecentSample()
getCacheMissInMemoryMostRecentSample
in interface LegacyCacheStatistics
public long getCacheOffHeapMissRate()
getCacheOffHeapMissRate
in interface CacheSampler
public long getCacheMissOffHeapMostRecentSample()
getCacheMissOffHeapMostRecentSample
in interface LegacyCacheStatistics
public long getCacheOnDiskMissRate()
getCacheOnDiskMissRate
in interface CacheSampler
public long getCacheMissOnDiskMostRecentSample()
getCacheMissOnDiskMostRecentSample
in interface LegacyCacheStatistics
public long getCacheMissNotFoundMostRecentSample()
getCacheMissNotFoundMostRecentSample
in interface LegacyCacheStatistics
public void dispose()
dispose
in interface LegacyCacheStatistics
public boolean isTerracottaClustered()
isTerracottaClustered
in interface CacheSampler
public String getTerracottaConsistency()
getTerracottaConsistency
in interface CacheSampler
public long getAverageGetTime()
getAverageGetTime
in interface CacheSampler
public long getMaxGetTimeNanos()
getMaxGetTimeNanos
in interface LegacyCacheStatistics
public long getMinGetTimeNanos()
getMinGetTimeNanos
in interface LegacyCacheStatistics
public long getXaCommitCount()
getXaCommitCount
in interface LegacyCacheStatistics
public long getXaRollbackCount()
getXaRollbackCount
in interface LegacyCacheStatistics
public long getXaRecoveredCount()
getXaRecoveredCount
in interface LegacyCacheStatistics
public boolean getHasWriteBehindWriter()
getHasWriteBehindWriter
in interface CacheSampler
public long getWriterQueueLength()
getWriterQueueLength
in interface CacheSampler
getWriterQueueLength
in interface LegacyCacheStatistics
public int getWriterMaxQueueSize()
getWriterMaxQueueSize
in interface CacheSampler
CacheWriterConfiguration.getWriteBehindMaxQueueSize()
public int getWriterConcurrency()
getWriterConcurrency
in interface CacheSampler
CacheWriterConfiguration.getWriteBehindConcurrency()
public long getCacheHitCount()
getCacheHitCount
in interface LegacyCacheStatistics
public long getCacheMissCount()
getCacheMissCount
in interface LegacyCacheStatistics
public long getInMemoryMissCount()
getInMemoryMissCount
in interface LegacyCacheStatistics
public long getOffHeapMissCount()
getOffHeapMissCount
in interface LegacyCacheStatistics
public long getOnDiskMissCount()
getOnDiskMissCount
in interface LegacyCacheStatistics
public long getCacheMissCountExpired()
getCacheMissCountExpired
in interface LegacyCacheStatistics
public long getDiskExpiryThreadIntervalSeconds()
getDiskExpiryThreadIntervalSeconds
in interface CacheSampler
public void setDiskExpiryThreadIntervalSeconds(long seconds)
setDiskExpiryThreadIntervalSeconds
in interface CacheSampler
public long getMaxEntriesLocalHeap()
getMaxEntriesLocalHeap
in interface CacheSampler
public void setMaxEntriesLocalHeap(long maxEntries)
setMaxEntriesLocalHeap
in interface CacheSampler
public long getMaxBytesLocalHeap()
getMaxBytesLocalHeap
in interface CacheSampler
public void setMaxBytesLocalHeap(long maxBytes)
setMaxBytesLocalHeap
in interface CacheSampler
public void setMaxBytesLocalHeapAsString(String maxBytes)
setMaxBytesLocalHeapAsString
in interface CacheSampler
public String getMaxBytesLocalHeapAsString()
getMaxBytesLocalHeapAsString
in interface CacheSampler
public long getMaxEntriesLocalDisk()
getMaxEntriesLocalDisk
in interface CacheSampler
public void setMaxEntriesLocalDisk(long maxEntries)
setMaxEntriesLocalDisk
in interface CacheSampler
public void setMaxBytesLocalDisk(long maxBytes)
setMaxBytesLocalDisk
in interface CacheSampler
public void setMaxBytesLocalDiskAsString(String maxBytes)
setMaxBytesLocalDiskAsString
in interface CacheSampler
public String getMaxBytesLocalDiskAsString()
getMaxBytesLocalDiskAsString
in interface CacheSampler
public int getMaxElementsOnDisk()
getMaxElementsOnDisk
in interface CacheSampler
public int getMaxEntriesInCache()
getMaxEntriesInCache
in interface CacheSampler
public void setMaxElementsOnDisk(int maxElements)
setMaxElementsOnDisk
in interface CacheSampler
public void setMaxEntriesInCache(int maxEntries)
setMaxEntriesInCache
in interface CacheSampler
public long getMaxBytesLocalDisk()
getMaxBytesLocalDisk
in interface CacheSampler
public long getMaxBytesLocalOffHeap()
getMaxBytesLocalOffHeap
in interface CacheSampler
public String getMaxBytesLocalOffHeapAsString()
getMaxBytesLocalOffHeapAsString
in interface CacheSampler
public String getMemoryStoreEvictionPolicy()
getMemoryStoreEvictionPolicy
in interface CacheSampler
public void setMemoryStoreEvictionPolicy(String evictionPolicy)
setMemoryStoreEvictionPolicy
in interface CacheSampler
public long getTimeToIdleSeconds()
getTimeToIdleSeconds
in interface CacheSampler
public void setTimeToIdleSeconds(long tti)
setTimeToIdleSeconds
in interface CacheSampler
public long getTimeToLiveSeconds()
getTimeToLiveSeconds
in interface CacheSampler
public void setTimeToLiveSeconds(long ttl)
setTimeToLiveSeconds
in interface CacheSampler
public boolean isDiskPersistent()
isDiskPersistent
in interface CacheSampler
public void setDiskPersistent(boolean diskPersistent)
setDiskPersistent
in interface CacheSampler
public boolean isEternal()
isEternal
in interface CacheSampler
public void setEternal(boolean eternal)
setEternal
in interface CacheSampler
public boolean isOverflowToDisk()
isOverflowToDisk
in interface CacheSampler
public void setOverflowToDisk(boolean overflowToDisk)
setOverflowToDisk
in interface CacheSampler
public boolean isLoggingEnabled()
isLoggingEnabled
in interface CacheSampler
public void setLoggingEnabled(boolean enabled)
setLoggingEnabled
in interface CacheSampler
public boolean isPinned()
isPinned
in interface CacheSampler
PinningConfiguration
public String getPinnedToStore()
getPinnedToStore
in interface CacheSampler
PinningConfiguration
public long getEvictedCount()
getEvictedCount
in interface LegacyCacheStatistics
public long getExpiredCount()
getExpiredCount
in interface LegacyCacheStatistics
public long getInMemoryHitCount()
getInMemoryHitCount
in interface LegacyCacheStatistics
public long getOffHeapHitCount()
getOffHeapHitCount
in interface LegacyCacheStatistics
@Deprecated public long getOffHeapSize()
getLocalOffHeapSize()
getOffHeapSize
in interface LegacyCacheStatistics
public long getOnDiskHitCount()
getOnDiskHitCount
in interface LegacyCacheStatistics
@Deprecated public long getOnDiskSize()
getLocalDiskSize()
getOnDiskSize
in interface LegacyCacheStatistics
public long getLocalDiskSize()
getLocalDiskSize
in interface LegacyCacheStatistics
public long getLocalHeapSize()
getLocalHeapSize
in interface LegacyCacheStatistics
public long getLocalOffHeapSize()
getLocalOffHeapSize
in interface LegacyCacheStatistics
public long getLocalDiskSizeInBytes()
getLocalDiskSizeInBytes
in interface LegacyCacheStatistics
public long getLocalHeapSizeInBytes()
getLocalHeapSizeInBytes
in interface LegacyCacheStatistics
public long getLocalOffHeapSizeInBytes()
getLocalOffHeapSizeInBytes
in interface LegacyCacheStatistics
public long getPutCount()
getPutCount
in interface LegacyCacheStatistics
public long getRemovedCount()
getRemovedCount
in interface LegacyCacheStatistics
public long getSize()
getSize
in interface LegacyCacheStatistics
public long getInMemorySize()
getInMemorySize
in interface LegacyCacheStatistics
public long getUpdateCount()
getUpdateCount
in interface LegacyCacheStatistics
public void deregistered(CacheConfiguration config)
deregistered
in interface CacheConfigurationListener
public void maxBytesLocalHeapChanged(long oldValue, long newValue)
maxBytesLocalHeapChanged
in interface CacheConfigurationListener
oldValue
- old value in bytesnewValue
- new value in bytespublic void maxBytesLocalDiskChanged(long oldValue, long newValue)
maxBytesLocalDiskChanged
in interface CacheConfigurationListener
oldValue
- old value in bytesnewValue
- new value in bytespublic void diskCapacityChanged(int oldCapacity, int newCapacity)
diskCapacityChanged
in interface CacheConfigurationListener
oldCapacity
- previous capacitynewCapacity
- new capacitypublic void maxEntriesInCacheChanged(int oldCapacity, int newCapacity)
maxEntriesInCacheChanged
in interface CacheConfigurationListener
oldCapacity
- old valuenewCapacity
- new valuepublic void loggingChanged(boolean oldValue, boolean newValue)
loggingChanged
in interface CacheConfigurationListener
oldValue
- old value whether logging was enabled or notnewValue
- new value whether logging was enabled or notpublic void memoryCapacityChanged(int oldCapacity, int newCapacity)
memoryCapacityChanged
in interface CacheConfigurationListener
oldCapacity
- previous capacitynewCapacity
- new capacitypublic void registered(CacheConfiguration config)
registered
in interface CacheConfigurationListener
public void timeToIdleChanged(long oldTimeToIdle, long newTimeToIdle)
timeToIdleChanged
in interface CacheConfigurationListener
oldTimeToIdle
- previous time to idle valuenewTimeToIdle
- new time to idle valuepublic void timeToLiveChanged(long oldTimeToLive, long newTimeToLive)
timeToLiveChanged
in interface CacheConfigurationListener
oldTimeToLive
- previous time to live valuenewTimeToLive
- new time to live valuepublic long getAverageSearchTime()
getAverageSearchTime
in interface CacheSampler
public long getSearchesPerSecond()
getSearchesPerSecond
in interface LegacyCacheStatistics
public boolean getTransactional()
getTransactional
in interface CacheSampler
CacheConfiguration.TransactionalMode
public boolean getSearchable()
getSearchable
in interface CacheSampler
Searchable
public long getCacheSearchRate()
getCacheSearchRate
in interface CacheSampler
public long getTransactionCommitRate()
getTransactionCommitRate
in interface CacheSampler
public long getCacheXaCommitsMostRecentSample()
getCacheXaCommitsMostRecentSample
in interface LegacyCacheStatistics
public long getTransactionRollbackRate()
getTransactionRollbackRate
in interface CacheSampler
public long getCacheXaRollbacksMostRecentSample()
getCacheXaRollbacksMostRecentSample
in interface LegacyCacheStatistics
public int getCacheHitRatio()
getCacheHitRatio
in interface LegacyCacheStatistics
public int getCacheHitRatioMostRecentSample()
getCacheHitRatioMostRecentSample
in interface LegacyCacheStatistics
public SampledCounter getCacheHitRatioSample()
SampledCounter
for cache hit ratio
getCacheHitRatioSample
in interface CacheSampler
SampledCounter
for cache hit ratiopublic long getAverageGetTimeNanos()
LegacyCacheStatistics
getAverageGetTimeNanos
in interface LegacyCacheStatistics
public SampledCounter getCacheHitSample()
SampledCounter
for cache hit
getCacheHitSample
in interface CacheSampler
SampledCounter
for cache hit countpublic SampledCounter getCacheHitInMemorySample()
SampledCounter
for in-memory cache hit
getCacheHitInMemorySample
in interface CacheSampler
SampledCounter
for cache hit count in memorypublic SampledCounter getCacheHitOffHeapSample()
SampledCounter
for off-heap cache hit
getCacheHitOffHeapSample
in interface CacheSampler
SampledCounter
for cache hit count in off-heappublic SampledCounter getCacheHitOnDiskSample()
SampledCounter
for on-disk cache hit
getCacheHitOnDiskSample
in interface CacheSampler
SampledCounter
for cache hit count on diskpublic SampledCounter getCacheMissSample()
SampledCounter
for cache miss
getCacheMissSample
in interface CacheSampler
SampledCounter
for cache miss countpublic SampledCounter getCacheMissInMemorySample()
SampledCounter
for in-memory cache miss
getCacheMissInMemorySample
in interface CacheSampler
SampledCounter
for cache miss count in memorypublic SampledCounter getCacheMissOffHeapSample()
SampledCounter
for off-heap cache miss
getCacheMissOffHeapSample
in interface CacheSampler
SampledCounter
for cache miss count in off-heappublic SampledCounter getCacheMissOnDiskSample()
SampledCounter
for on-disk cache miss
getCacheMissOnDiskSample
in interface CacheSampler
SampledCounter
for cache miss count on diskpublic SampledCounter getCacheMissExpiredSample()
SampledCounter
for cache miss as result of the element getting
expired
getCacheMissExpiredSample
in interface CacheSampler
SampledCounter
for cache miss count and the reason for miss
being the element got expiredpublic SampledCounter getCacheMissNotFoundSample()
SampledCounter
for cache miss as result of the element not found
in cache
getCacheMissNotFoundSample
in interface CacheSampler
SampledCounter
for cache miss not found countpublic SampledCounter getCacheElementEvictedSample()
SampledCounter
element evicted from cache
getCacheElementEvictedSample
in interface CacheSampler
SampledCounter
for element evicted countpublic SampledCounter getCacheElementRemovedSample()
SampledCounter
element removed from cache
getCacheElementRemovedSample
in interface CacheSampler
SampledCounter
for element removed countpublic SampledCounter getCacheElementExpiredSample()
SampledCounter
element expired from cache
getCacheElementExpiredSample
in interface CacheSampler
public SampledCounter getCacheElementPutSample()
SampledCounter
element puts in the cache
getCacheElementPutSample
in interface CacheSampler
SampledCounter
for number of element putspublic SampledCounter getCacheElementUpdatedSample()
SampledCounter
element updates , i.e. put() on elements with
already existing keys in the cache
getCacheElementUpdatedSample
in interface CacheSampler
SampledCounter
d value for element update countpublic SampledRateCounter getAverageGetTimeSample()
SampledRateCounter
for average time taken for get() operation in the
cache
getAverageGetTimeSample
in interface CacheSampler
SampledRateCounter
of average get time taken for a get operationpublic SampledRateCounter getAverageSearchTimeSample()
SampledRateCounter
for average search execution time for searches finishing within the last sample period
getAverageSearchTimeSample
in interface CacheSampler
SampledRateCounter
of average search time takenpublic SampledCounter getSearchesPerSecondSample()
SampledCounter
for number of searches that have finished in the interval
getSearchesPerSecondSample
in interface CacheSampler
SampledCounter
for number of searchespublic SampledCounter getCacheXaCommitsSample()
SampledCounter
for number of XA Transaction commits that have completed in the interval
getCacheXaCommitsSample
in interface CacheSampler
SampledCounter
for number XA Transaction commitspublic SampledCounter getCacheXaRollbacksSample()
SampledCounter
for number of XA Transaction rollbacks that have completed in the interval
getCacheXaRollbacksSample
in interface CacheSampler
SampledCounter
for number XA Transaction rollbackspublic long getAverageSearchTimeNanos()
LegacyCacheStatistics
getAverageSearchTimeNanos
in interface LegacyCacheStatistics
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |