|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheSampler
An interface for exposing cache statistics.
Extends from both LiveCacheStatistics
and LegacyCacheStatistics
Method Summary | |
---|---|
void |
flush()
Flushes all cache items from memory to the disk store, and from the DiskStore to disk. |
long |
getAverageGetTime()
|
SampledRateCounter |
getAverageGetTimeSample()
Get the SampledRateCounter for average time taken for get() operation in the
cache |
long |
getAverageSearchTime()
|
SampledRateCounter |
getAverageSearchTimeSample()
Get the SampledRateCounter for average search execution time for searches finishing within the last sample period |
SampledCounter |
getCacheElementEvictedSample()
Get the SampledCounter element evicted from cache |
SampledCounter |
getCacheElementExpiredSample()
Get the SampledCounter element expired from cache |
SampledCounter |
getCacheElementPutSample()
Get the SampledCounter element puts in the cache |
SampledCounter |
getCacheElementRemovedSample()
Get the SampledCounter element removed from cache |
SampledCounter |
getCacheElementUpdatedSample()
Get the SampledCounter element updates , i.e. |
long |
getCacheEvictionRate()
|
long |
getCacheExpirationRate()
|
SampledCounter |
getCacheHitInMemorySample()
Get the SampledCounter for in-memory cache hit |
SampledCounter |
getCacheHitOffHeapSample()
Get the SampledCounter for off-heap cache hit |
SampledCounter |
getCacheHitOnDiskSample()
Get the SampledCounter for on-disk cache hit |
long |
getCacheHitRate()
|
SampledCounter |
getCacheHitRatioSample()
Get the SampledCounter for cache hit ratio |
SampledCounter |
getCacheHitSample()
Get the SampledCounter for cache hit |
long |
getCacheInMemoryHitRate()
|
long |
getCacheInMemoryMissRate()
|
SampledCounter |
getCacheMissExpiredSample()
Get the SampledCounter for cache miss as result of the element getting
expired |
SampledCounter |
getCacheMissInMemorySample()
Get the SampledCounter for in-memory cache miss |
SampledCounter |
getCacheMissNotFoundSample()
Get the SampledCounter for cache miss as result of the element not found
in cache |
SampledCounter |
getCacheMissOffHeapSample()
Get the SampledCounter for off-heap cache miss |
SampledCounter |
getCacheMissOnDiskSample()
Get the SampledCounter for on-disk cache miss |
long |
getCacheMissRate()
|
SampledCounter |
getCacheMissSample()
Get the SampledCounter for cache miss |
long |
getCacheOffHeapHitRate()
|
long |
getCacheOffHeapMissRate()
|
long |
getCacheOnDiskHitRate()
|
long |
getCacheOnDiskMissRate()
|
long |
getCachePutRate()
|
long |
getCacheRemoveRate()
|
long |
getCacheSearchRate()
|
long |
getCacheUpdateRate()
|
SampledCounter |
getCacheXaCommitsSample()
Get the SampledCounter for number of XA Transaction commits that have completed in the interval |
SampledCounter |
getCacheXaRollbacksSample()
Get the SampledCounter for number of XA Transaction rollbacks that have completed in the interval |
long |
getDiskExpiryThreadIntervalSeconds()
Configuration property accessor |
boolean |
getHasWriteBehindWriter()
Is there a registered Write-behind CacheWriter |
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 |
String |
getMemoryStoreEvictionPolicy()
Configuration property accessor |
String |
getPinnedToStore()
Configuration property accessor |
boolean |
getSearchable()
Is the cache configured for search |
SampledCounter |
getSearchesPerSecondSample()
Get the SampledCounter for number of searches that have finished in the interval |
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()
|
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 |
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 |
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 |
Method Detail |
---|
boolean isEnabled()
void setNodeBulkLoadEnabled(boolean bulkLoadEnabled)
boolean isClusterBulkLoadEnabled()
boolean isNodeBulkLoadEnabled()
void setEnabled(boolean enabled)
void removeAll()
void flush()
String getStatus()
boolean isTerracottaClustered()
String getTerracottaConsistency()
long getMaxEntriesLocalHeap()
void setMaxEntriesLocalHeap(long maxEntries)
maxEntries
- long getMaxBytesLocalHeap()
void setMaxBytesLocalHeap(long maxBytes)
maxBytes
- void setMaxBytesLocalHeapAsString(String maxBytes)
maxBytes
- String getMaxBytesLocalHeapAsString()
long getMaxBytesLocalOffHeap()
String getMaxBytesLocalOffHeapAsString()
long getMaxEntriesLocalDisk()
void setMaxEntriesLocalDisk(long maxEntries)
maxEntries
- int getMaxElementsOnDisk()
int getMaxEntriesInCache()
void setMaxElementsOnDisk(int maxElements)
maxElements
- void setMaxEntriesInCache(int maxEntries)
maxEntriesInCache
- long getMaxBytesLocalDisk()
void setMaxBytesLocalDisk(long maxBytes)
maxBytes
- void setMaxBytesLocalDiskAsString(String maxBytes)
maxBytes
- String getMaxBytesLocalDiskAsString()
String getMemoryStoreEvictionPolicy()
void setMemoryStoreEvictionPolicy(String evictionPolicy)
evictionPolicy
- boolean isEternal()
void setEternal(boolean eternal)
eternal
- long getTimeToIdleSeconds()
void setTimeToIdleSeconds(long tti)
tti
- long getTimeToLiveSeconds()
void setTimeToLiveSeconds(long ttl)
ttl
- boolean isOverflowToDisk()
void setOverflowToDisk(boolean overflowToDisk)
overflowToDisk
- boolean isDiskPersistent()
void setDiskPersistent(boolean diskPersistent)
diskPersistent
- long getDiskExpiryThreadIntervalSeconds()
void setDiskExpiryThreadIntervalSeconds(long seconds)
seconds
- boolean isLoggingEnabled()
void setLoggingEnabled(boolean enabled)
enabled
- boolean isPinned()
PinningConfiguration
String getPinnedToStore()
PinningConfiguration
boolean getHasWriteBehindWriter()
long getWriterQueueLength()
getWriterQueueLength
in interface LegacyCacheStatistics
int getWriterMaxQueueSize()
CacheWriterConfiguration.getWriteBehindMaxQueueSize()
int getWriterConcurrency()
CacheWriterConfiguration.getWriteBehindConcurrency()
boolean getTransactional()
CacheConfiguration.TransactionalMode
long getTransactionCommitRate()
long getTransactionRollbackRate()
boolean getSearchable()
Searchable
long getCacheSearchRate()
long getAverageSearchTime()
long getCacheHitRate()
long getCacheInMemoryHitRate()
long getCacheOffHeapHitRate()
long getCacheOnDiskHitRate()
long getCacheMissRate()
long getCacheInMemoryMissRate()
long getCacheOffHeapMissRate()
long getCacheOnDiskMissRate()
long getCachePutRate()
long getCacheUpdateRate()
long getCacheRemoveRate()
long getCacheEvictionRate()
long getCacheExpirationRate()
long getAverageGetTime()
SampledCounter getCacheHitSample()
SampledCounter
for cache hit
SampledCounter
for cache hit countSampledCounter getCacheHitRatioSample()
SampledCounter
for cache hit ratio
SampledCounter
for cache hit ratioSampledCounter getCacheHitInMemorySample()
SampledCounter
for in-memory cache hit
SampledCounter
for cache hit count in memorySampledCounter getCacheHitOffHeapSample()
SampledCounter
for off-heap cache hit
SampledCounter
for cache hit count in off-heapSampledCounter getCacheHitOnDiskSample()
SampledCounter
for on-disk cache hit
SampledCounter
for cache hit count on diskSampledCounter getCacheMissSample()
SampledCounter
for cache miss
SampledCounter
for cache miss countSampledCounter getCacheMissInMemorySample()
SampledCounter
for in-memory cache miss
SampledCounter
for cache miss count in memorySampledCounter getCacheMissOffHeapSample()
SampledCounter
for off-heap cache miss
SampledCounter
for cache miss count in off-heapSampledCounter getCacheMissOnDiskSample()
SampledCounter
for on-disk cache miss
SampledCounter
for cache miss count on diskSampledCounter getCacheMissExpiredSample()
SampledCounter
for cache miss as result of the element getting
expired
SampledCounter
for cache miss count and the reason for miss
being the element got expiredSampledCounter getCacheMissNotFoundSample()
SampledCounter
for cache miss as result of the element not found
in cache
SampledCounter
for cache miss not found countSampledCounter getCacheElementEvictedSample()
SampledCounter
element evicted from cache
SampledCounter
for element evicted countSampledCounter getCacheElementRemovedSample()
SampledCounter
element removed from cache
SampledCounter
for element removed countSampledCounter getCacheElementExpiredSample()
SampledCounter
element expired from cache
SampledCounter getCacheElementPutSample()
SampledCounter
element puts in the cache
SampledCounter
for number of element putsSampledCounter getCacheElementUpdatedSample()
SampledCounter
element updates , i.e. put() on elements with
already existing keys in the cache
SampledCounter
d value for element update countSampledRateCounter getAverageGetTimeSample()
SampledRateCounter
for average time taken for get() operation in the
cache
SampledRateCounter
of average get time taken for a get operationSampledRateCounter getAverageSearchTimeSample()
SampledRateCounter
for average search execution time for searches finishing within the last sample period
SampledRateCounter
of average search time takenSampledCounter getSearchesPerSecondSample()
SampledCounter
for number of searches that have finished in the interval
SampledCounter
for number of searchesSampledCounter getCacheXaCommitsSample()
SampledCounter
for number of XA Transaction commits that have completed in the interval
SampledCounter
for number XA Transaction commitsSampledCounter getCacheXaRollbacksSample()
SampledCounter
for number of XA Transaction rollbacks that have completed in the interval
SampledCounter
for number XA Transaction rollbacks
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |