|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SampledCacheMBean
An MBean for Cache exposing cache statistics.
Extends from both LiveCacheStatistics
and SampledCacheStatistics
Field Summary | |
---|---|
static String |
CACHE_CHANGED
CACHE_CHANGED |
static String |
CACHE_CLEARED
CACHE_CLEARED |
static String |
CACHE_ENABLED
CACHE_ENABLED |
static String |
CACHE_FLUSHED
CACHE_FLUSHED |
static String |
CACHE_STATISTICS_ENABLED
CACHE_STATISTICS_ENABLED |
static String |
CACHE_STATISTICS_RESET
CACHE_STATISTICS_RESET |
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. |
float |
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 |
getMaxElementsInMemory()
Deprecated. use getMaxEntriesLocalHeap() instead |
int |
getMaxElementsOnDisk()
Deprecated. use getMaxEntriesLocalDisk() instead |
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. |
String |
getTerracottaStorageStrategy()
Returns a textual description of a Terracotta-clustered cache's storage-strategy. |
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 |
isClusterCoherent()
Deprecated. use isClusterBulkLoadEnabled() instead |
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 |
isNodeCoherent()
Deprecated. use isNodeBulkLoadEnabled() instead |
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 |
setMaxElementsInMemory(int maxElements)
setMaxElementsInMemory |
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 |
setNodeCoherent(boolean coherent)
Deprecated. use setNodeBulkLoadEnabled(boolean) instead |
void |
setOverflowToDisk(boolean overflowToDisk)
setOverflowToDisk |
void |
setStatisticsEnabled(boolean statsEnabled)
Controls the statistics. |
void |
setTimeToIdleSeconds(long tti)
setTimeToIdleSeconds |
void |
setTimeToLiveSeconds(long ttl)
setTimeToLiveSeconds |
Field Detail |
---|
static final String CACHE_ENABLED
static final String CACHE_CHANGED
static final String CACHE_FLUSHED
static final String CACHE_CLEARED
static final String CACHE_STATISTICS_ENABLED
static final String CACHE_STATISTICS_RESET
Method Detail |
---|
boolean isEnabled()
@Deprecated void setNodeCoherent(boolean coherent)
setNodeBulkLoadEnabled(boolean)
instead
void setNodeBulkLoadEnabled(boolean bulkLoadEnabled)
@Deprecated boolean isClusterCoherent()
isClusterBulkLoadEnabled()
instead
boolean isClusterBulkLoadEnabled()
@Deprecated boolean isNodeCoherent()
isNodeBulkLoadEnabled()
instead
boolean isNodeBulkLoadEnabled()
void setEnabled(boolean enabled)
void removeAll()
void flush()
String getStatus()
boolean isTerracottaClustered()
String getTerracottaConsistency()
String getTerracottaStorageStrategy()
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
- @Deprecated int getMaxElementsInMemory()
getMaxEntriesLocalHeap()
instead
void setMaxElementsInMemory(int maxElements)
maxElements
- 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
- @Deprecated int getMaxElementsOnDisk()
getMaxEntriesLocalDisk()
instead
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()
float getCacheAverageGetTime()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |