|
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 java.lang.String |
CACHE_CHANGED
CACHE_CHANGED |
static java.lang.String |
CACHE_CLEARED
CACHE_CLEARED |
static java.lang.String |
CACHE_ENABLED
CACHE_ENABLED |
static java.lang.String |
CACHE_FLUSHED
CACHE_FLUSHED |
static java.lang.String |
CACHE_STATISTICS_ENABLED
CACHE_STATISTICS_ENABLED |
static java.lang.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. |
long |
getConfigDiskExpiryThreadIntervalSeconds()
Configuration property accessor |
int |
getConfigMaxElementsInMemory()
Configuration property accessor |
int |
getConfigMaxElementsOnDisk()
Configuration property accessor |
java.lang.String |
getConfigMemoryStoreEvictionPolicy()
Configuration property accessor |
long |
getConfigTimeToIdleSeconds()
Configuration property accessor |
long |
getConfigTimeToLiveSeconds()
Configuration property accessor |
java.lang.String |
getStatus()
Gets the status attribute of the Cache. |
boolean |
isClusterCoherent()
Is the cache coherent cluster-wide? |
boolean |
isConfigDiskPersistent()
Configuration property accessor |
boolean |
isConfigEternal()
Configuration property accessor |
boolean |
isConfigLoggingEnabled()
Configuration property accessor |
boolean |
isConfigOverflowToDisk()
Configuration property accessor |
boolean |
isEnabled()
Is the cache enabled? |
boolean |
isNodeCoherent()
Is the cache coherent locally? |
boolean |
isTerracottaClustered()
Is the cache configured with Terracotta clustering? |
void |
removeAll()
Removes all cached items. |
void |
setConfigDiskExpiryThreadIntervalSeconds(long seconds)
setConfigDiskExpiryThreadIntervalSeconds |
void |
setConfigDiskPersistent(boolean diskPersistent)
setConfigDiskPersistent |
void |
setConfigEternal(boolean eternal)
setConfigEternal |
void |
setConfigLoggingEnabled(boolean enabled)
setConfigLoggingEnabled |
void |
setConfigMaxElementsInMemory(int maxElements)
setConfigMaxElementsInMemory |
void |
setConfigMaxElementsOnDisk(int maxElements)
setConfigMaxElementsOnDisk |
void |
setConfigMemoryStoreEvictionPolicy(java.lang.String evictionPolicy)
setConfigMemoryStoreEvictionPolicy |
void |
setConfigOverflowToDisk(boolean overflowToDisk)
setConfigOverflowToDisk |
void |
setConfigTimeToIdleSeconds(long tti)
setConfigTimeToIdleSeconds |
void |
setConfigTimeToLiveSeconds(long ttl)
setConfigTimeToLiveSeconds |
void |
setEnabled(boolean enabled)
Enabled/disable the cache. |
void |
setNodeCoherent(boolean coherent)
Enabled/disable cache coherence mode for this node. |
Methods inherited from interface net.sf.ehcache.statistics.LiveCacheStatistics |
---|
getAverageGetTimeMillis, getCacheHitCount, getCacheMissCount, getCacheMissCountExpired, getCacheName, getEvictedCount, getExpiredCount, getInMemoryHitCount, getInMemorySize, getMaxGetTimeMillis, getMinGetTimeMillis, getOnDiskHitCount, getOnDiskSize, getPutCount, getRemovedCount, getSize, getStatisticsAccuracy, getStatisticsAccuracyDescription, getUpdateCount, isStatisticsEnabled |
Field Detail |
---|
static final java.lang.String CACHE_ENABLED
static final java.lang.String CACHE_CHANGED
static final java.lang.String CACHE_FLUSHED
static final java.lang.String CACHE_CLEARED
static final java.lang.String CACHE_STATISTICS_ENABLED
static final java.lang.String CACHE_STATISTICS_RESET
Method Detail |
---|
boolean isEnabled()
void setNodeCoherent(boolean coherent)
boolean isClusterCoherent()
boolean isNodeCoherent()
void setEnabled(boolean enabled)
void removeAll()
void flush()
java.lang.String getStatus()
boolean isTerracottaClustered()
void clearStatistics()
clearStatistics
in interface LiveCacheStatistics
clearStatistics
in interface SampledCacheStatistics
void enableStatistics()
void disableStatistics()
void enableSampledStatistics()
void disableSampledStatistics()
int getConfigMaxElementsInMemory()
void setConfigMaxElementsInMemory(int maxElements)
maxElements
- int getConfigMaxElementsOnDisk()
void setConfigMaxElementsOnDisk(int maxElements)
maxElements
- java.lang.String getConfigMemoryStoreEvictionPolicy()
void setConfigMemoryStoreEvictionPolicy(java.lang.String evictionPolicy)
evictionPolicy
- boolean isConfigEternal()
void setConfigEternal(boolean eternal)
eternal
- long getConfigTimeToIdleSeconds()
void setConfigTimeToIdleSeconds(long tti)
tti
- long getConfigTimeToLiveSeconds()
void setConfigTimeToLiveSeconds(long ttl)
ttl
- boolean isConfigOverflowToDisk()
void setConfigOverflowToDisk(boolean overflowToDisk)
overflowToDisk
- boolean isConfigDiskPersistent()
void setConfigDiskPersistent(boolean diskPersistent)
diskPersistent
- long getConfigDiskExpiryThreadIntervalSeconds()
void setConfigDiskExpiryThreadIntervalSeconds(long seconds)
seconds
- boolean isConfigLoggingEnabled()
void setConfigLoggingEnabled(boolean enabled)
enabled
-
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |