|
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. |
long |
getConfigDiskExpiryThreadIntervalSeconds()
Configuration property accessor |
int |
getConfigMaxElementsInMemory()
Configuration property accessor |
int |
getConfigMaxElementsOnDisk()
Configuration property accessor |
String |
getConfigMemoryStoreEvictionPolicy()
Configuration property accessor |
long |
getConfigTimeToIdleSeconds()
Configuration property accessor |
long |
getConfigTimeToLiveSeconds()
Configuration property accessor |
boolean |
getHasWriteBehindWriter()
Is there a registered Write-behind CacheWriter |
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. |
boolean |
getTransactional()
Is the cache a transactional one |
int |
getWriterConcurrency()
Returns the number of configured write-behind queues/threads. |
int |
getWriterMaxQueueSize()
Returns the maximum size of any write-behind queues. |
boolean |
isClusterBulkLoadEnabled()
Is the cache in bulk-load mode cluster-wide? |
boolean |
isClusterCoherent()
Deprecated. use isClusterBulkLoadEnabled() instead |
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 |
isNodeBulkLoadEnabled()
Is the cache in bulk-load mode locally? |
boolean |
isNodeCoherent()
Deprecated. use isNodeBulkLoadEnabled() instead |
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(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 |
setNodeBulkLoadEnabled(boolean bulkLoadEnabled)
Enabled/disable bulk-load mode for this node. |
void |
setNodeCoherent(boolean coherent)
Deprecated. use setNodeBulkLoadEnabled(boolean) instead |
void |
setStatisticsEnabled(boolean statsEnabled)
Controls the statistics. |
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()
int getConfigMaxElementsInMemory()
void setConfigMaxElementsInMemory(int maxElements)
maxElements
- int getConfigMaxElementsOnDisk()
void setConfigMaxElementsOnDisk(int maxElements)
maxElements
- String getConfigMemoryStoreEvictionPolicy()
void setConfigMemoryStoreEvictionPolicy(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
- boolean getHasWriteBehindWriter()
int getWriterMaxQueueSize()
CacheWriterConfiguration.getWriteBehindMaxQueueSize()
int getWriterConcurrency()
CacheWriterConfiguration.getWriteBehindConcurrency()
boolean getTransactional()
CacheConfiguration.TransactionalMode
boolean getSearchable()
Searchable
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |