|
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 SampledCacheStatistics
Method Summary | |
---|---|
void |
clearStatistics()
Clear both sampled and cumulative statistics |
void |
disableSampledStatistics()
Disables statistics collection |
void |
disableStatistics()
Disables statistics collection. |
void |
enableSampledStatistics()
Enables statistics collection. |
void |
enableStatistics()
Enables statistics collection |
void |
flush()
Flushes all cache items from memory to the disk store, and from the DiskStore to disk. |
long |
getCacheAverageGetTime()
|
long |
getCacheAverageSearchTime()
|
long |
getCacheEvictionRate()
|
long |
getCacheExpirationRate()
|
long |
getCacheHitRate()
|
long |
getCacheInMemoryHitRate()
|
long |
getCacheInMemoryMissRate()
|
long |
getCacheMissRate()
|
long |
getCacheOffHeapHitRate()
|
long |
getCacheOffHeapMissRate()
|
long |
getCacheOnDiskHitRate()
|
long |
getCacheOnDiskMissRate()
|
long |
getCachePutRate()
|
long |
getCacheRemoveRate()
|
long |
getCacheSearchRate()
|
long |
getCacheUpdateRate()
|
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 |
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 |
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 |
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 |
setStatisticsEnabled(boolean statsEnabled)
Controls the statistics. |
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()
void clearStatistics()
clearStatistics
in interface LiveCacheStatistics
clearStatistics
in interface SampledCacheStatistics
void enableStatistics()
void disableStatistics()
void setStatisticsEnabled(boolean statsEnabled)
void enableSampledStatistics()
void disableSampledStatistics()
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()
void setMaxElementsOnDisk(int maxElements)
maxElements
- 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 LiveCacheStatistics
int getWriterMaxQueueSize()
CacheWriterConfiguration.getWriteBehindMaxQueueSize()
int getWriterConcurrency()
CacheWriterConfiguration.getWriteBehindConcurrency()
boolean getTransactional()
CacheConfiguration.TransactionalMode
long getTransactionCommitRate()
long getTransactionRollbackRate()
boolean getSearchable()
Searchable
long getCacheSearchRate()
long getCacheAverageSearchTime()
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 getCacheAverageGetTime()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |