|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.StandardMBean
net.sf.ehcache.hibernate.management.impl.BaseEmitterBean
net.sf.ehcache.management.sampled.SampledCache
public class SampledCache
An implementation of SampledCacheMBean
| Field Summary |
|---|
| Fields inherited from class net.sf.ehcache.hibernate.management.impl.BaseEmitterBean |
|---|
emitter, sequenceNumber |
| Fields inherited from interface net.sf.ehcache.management.sampled.SampledCacheMBean |
|---|
CACHE_CHANGED, CACHE_CLEARED, CACHE_ENABLED, CACHE_FLUSHED, CACHE_STATISTICS_ENABLED, CACHE_STATISTICS_RESET |
| Constructor Summary | |
|---|---|
SampledCache(Ehcache cache)
Constructor accepting the backing Ehcache |
|
| Method Summary | |
|---|---|
void |
clearStatistics()
Clear both sampled and cumulative statistics |
void |
deregistered(CacheConfiguration config)
Indicates that this listener was removed from the given configuration |
void |
disableSampledStatistics()
Disables statistics collection |
void |
disableStatistics()
Disables statistics collection. |
void |
diskCapacityChanged(int oldCapacity,
int newCapacity)
Indicates a change in the configurations disk store capacity |
protected void |
doDispose()
Dispose callback of subclasses |
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 |
getAverageGetTimeMillis()
Average time in milli seconds taken to get an element from the cache. |
long |
getAverageGetTimeMostRecentSample()
Get most recent value for average time taken for get() operation in the cache |
long |
getAverageSearchTime()
Get the average search execution time for searches finishing within the last sample period |
Map<String,Object> |
getCacheAttributes()
getCacheAttributes |
float |
getCacheAverageGetTime()
|
long |
getCacheAverageSearchTime()
|
long |
getCacheElementEvictedMostRecentSample()
Get most recent value element evicted from cache |
long |
getCacheElementExpiredMostRecentSample()
Get most recent value element expired from cache |
long |
getCacheElementPutMostRecentSample()
Get most recent value element puts in the cache |
long |
getCacheElementRemovedMostRecentSample()
Get most recent value element removed from cache |
long |
getCacheElementUpdatedMostRecentSample()
Get most recent value element updates , i.e. |
long |
getCacheEvictionRate()
|
long |
getCacheExpirationRate()
|
long |
getCacheHitCount()
The number of times a requested item was found in the cache. |
long |
getCacheHitInMemoryMostRecentSample()
Get most recent value for in-memory cache hit |
long |
getCacheHitMostRecentSample()
Get most recent value for cache hit |
long |
getCacheHitOffHeapMostRecentSample()
Get most recent value for off-heap cache hit |
long |
getCacheHitOnDiskMostRecentSample()
Get most recent value for on-disk cache hit |
long |
getCacheHitRate()
|
long |
getCacheInMemoryHitRate()
|
long |
getCacheInMemoryMissRate()
|
long |
getCacheMissCount()
Number of times a requested element was not found in the cache. |
long |
getCacheMissCountExpired()
|
long |
getCacheMissExpiredMostRecentSample()
Get most recent value for cache miss as result of the element getting expired |
long |
getCacheMissInMemoryMostRecentSample()
Get most recent value for in-memory cache miss |
long |
getCacheMissMostRecentSample()
Get most recent value for cache miss |
long |
getCacheMissNotFoundMostRecentSample()
Get most recent value for cache miss as result of the element not found in cache |
long |
getCacheMissOffHeapMostRecentSample()
Get most recent value for off-heap cache miss |
long |
getCacheMissOnDiskMostRecentSample()
Get most recent value for on-disk cache miss |
long |
getCacheMissRate()
|
String |
getCacheName()
|
long |
getCacheOffHeapHitRate()
|
long |
getCacheOffHeapMissRate()
|
long |
getCacheOnDiskHitRate()
|
long |
getCacheOnDiskMissRate()
|
long |
getCachePutRate()
|
long |
getCacheRemoveRate()
|
long |
getCacheSearchRate()
|
long |
getCacheUpdateRate()
|
long |
getCacheXaCommitsMostRecentSample()
Get most recent value of XA commits |
long |
getCacheXaRollbacksMostRecentSample()
Get most recent value of XA rollbacks |
long |
getDiskExpiryThreadIntervalSeconds()
Configuration property accessor |
long |
getEvictedCount()
Number of elements evicted from the cache |
long |
getExpiredCount()
Number of elements expired since creation or last clear |
boolean |
getHasWriteBehindWriter()
Is there a registered Write-behind CacheWriter |
long |
getInMemoryHitCount()
Number of times a requested item was found in the Memory Store. |
long |
getInMemoryMissCount()
Number of times a requested item was not found in the Memory Store. |
long |
getInMemorySize()
Deprecated. use getLocalHeapSize() |
long |
getLocalDiskSize()
Number of entries in the DiskStore |
long |
getLocalDiskSizeInBytes()
Number of of bytes used by entries in the DiskStore |
long |
getLocalHeapSize()
Number of entries in the MemoryStore |
long |
getLocalHeapSizeInBytes()
Number of of bytes used by entries in the MemoryStore |
long |
getLocalOffHeapSize()
Number of entries in the off-heap store |
long |
getLocalOffHeapSizeInBytes()
Number of of bytes used by entries in the off-heap store |
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()
Configuration property accessor |
int |
getMaxElementsOnDisk()
Configuration property accessor |
long |
getMaxEntriesLocalDisk()
Configuration property accessor |
long |
getMaxEntriesLocalHeap()
Configuration property accessor |
long |
getMaxGetTimeMillis()
Return maximum time taken for a get operation in the cache in milliseconds |
String |
getMemoryStoreEvictionPolicy()
Configuration property accessor |
long |
getMinGetTimeMillis()
Return minimum time taken for a get operation in the cache in milliseconds |
MBeanNotificationInfo[] |
getNotificationInfo()
|
long |
getOffHeapHitCount()
Number of times a requested item was found in the off-heap store. |
long |
getOffHeapMissCount()
Number of times a requested item was not found in the off-heap store. |
long |
getOffHeapSize()
Deprecated. use getLocalOffHeapSize() |
long |
getOnDiskHitCount()
Number of times a requested item was found in the Disk Store. |
long |
getOnDiskMissCount()
Number of times a requested item was not found in the Disk Store. |
long |
getOnDiskSize()
Deprecated. use getLocalDiskSize() |
String |
getPinnedToStore()
Configuration property accessor |
long |
getPutCount()
Number of puts that has happened in the cache |
long |
getRemovedCount()
Number of elements removed since creation or last clear |
boolean |
getSearchable()
Is the cache configured for search |
long |
getSearchesPerSecond()
Get the number of searches that have finished execution in the last second |
long |
getSize()
Size of the cache based on current accuracy settings. |
int |
getStatisticsAccuracy()
Accurately measuring statistics can be expensive. |
String |
getStatisticsAccuracyDescription()
Accurately measuring statistics can be expensive. |
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()
|
long |
getUpdateCount()
Number of updates that as happened in the cache |
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 |
long |
getXaCommitCount()
Return the Cache's XAResource commit calls count |
long |
getXaRollbackCount()
Return the Cache's XAResource rollback calls count |
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 |
isSampledStatisticsEnabled()
Returns true if statistics collection is enabled for cache, otherwise false |
boolean |
isStatisticsEnabled()
Returns true if statistics is enabled |
boolean |
isTerracottaClustered()
Is the cache configured with Terracotta clustering? |
void |
loggingChanged(boolean oldValue,
boolean newValue)
Indicates a change in the configuration for enable/disable logging |
void |
maxBytesLocalDiskChanged(long oldValue,
long newValue)
Indicates a change in the configuration for maxBytesLocalDisk setting |
void |
maxBytesLocalHeapChanged(long oldValue,
long newValue)
Indicates a change in the configuration for maxBytesLocalHeap setting |
void |
memoryCapacityChanged(int oldCapacity,
int newCapacity)
Indicates a change in the configurations memory store capacity |
void |
propertyChange(PropertyChangeEvent evt)
|
void |
registered(CacheConfiguration config)
Indicates that this listener was registered with the given configuration |
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 |
void |
timeToIdleChanged(long oldTimeToIdle,
long newTimeToIdle)
Indicates a change in the configurations time to idle |
void |
timeToLiveChanged(long oldTimeToLive,
long newTimeToLive)
Indicates a change in the configurations time to live |
| Methods inherited from class net.sf.ehcache.hibernate.management.impl.BaseEmitterBean |
|---|
addNotificationListener, dispose, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification |
| Methods inherited from class javax.management.StandardMBean |
|---|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.ehcache.statistics.sampled.SampledCacheStatistics |
|---|
dispose |
| Constructor Detail |
|---|
public SampledCache(Ehcache cache)
throws NotCompliantMBeanException
Ehcache
cache -
NotCompliantMBeanException| Method Detail |
|---|
public boolean isEnabled()
isEnabled in interface SampledCacheMBeanpublic void setEnabled(boolean enabled)
setEnabled in interface SampledCacheMBean@Deprecated public boolean isClusterCoherent()
isClusterBulkLoadEnabled() instead
isClusterCoherent in interface SampledCacheMBeanpublic boolean isClusterBulkLoadEnabled()
isClusterBulkLoadEnabled in interface SampledCacheMBean@Deprecated public boolean isNodeCoherent()
isNodeBulkLoadEnabled() instead
isNodeCoherent in interface SampledCacheMBeanpublic boolean isNodeBulkLoadEnabled()
isNodeBulkLoadEnabled in interface SampledCacheMBean@Deprecated public void setNodeCoherent(boolean coherent)
setNodeBulkLoadEnabled(boolean) instead
setNodeCoherent in interface SampledCacheMBeanpublic void setNodeBulkLoadEnabled(boolean bulkLoadEnabled)
setNodeBulkLoadEnabled in interface SampledCacheMBeanpublic void flush()
flush in interface SampledCacheMBeanpublic String getCacheName()
getCacheName in interface LiveCacheStatisticspublic String getStatus()
getStatus in interface SampledCacheMBeanpublic void removeAll()
removeAll in interface SampledCacheMBeanpublic long getAverageGetTimeMostRecentSample()
getAverageGetTimeMostRecentSample in interface SampledCacheStatisticspublic long getCacheEvictionRate()
getCacheEvictionRate in interface SampledCacheMBeanpublic long getCacheElementEvictedMostRecentSample()
getCacheElementEvictedMostRecentSample in interface SampledCacheStatisticspublic long getCacheExpirationRate()
getCacheExpirationRate in interface SampledCacheMBeanpublic long getCacheElementExpiredMostRecentSample()
getCacheElementExpiredMostRecentSample in interface SampledCacheStatisticspublic long getCachePutRate()
getCachePutRate in interface SampledCacheMBeanpublic long getCacheElementPutMostRecentSample()
getCacheElementPutMostRecentSample in interface SampledCacheStatisticspublic long getCacheRemoveRate()
getCacheRemoveRate in interface SampledCacheMBeanpublic long getCacheElementRemovedMostRecentSample()
getCacheElementRemovedMostRecentSample in interface SampledCacheStatisticspublic long getCacheUpdateRate()
getCacheUpdateRate in interface SampledCacheMBeanpublic long getCacheElementUpdatedMostRecentSample()
getCacheElementUpdatedMostRecentSample in interface SampledCacheStatisticspublic long getCacheInMemoryHitRate()
getCacheInMemoryHitRate in interface SampledCacheMBeanpublic long getCacheHitInMemoryMostRecentSample()
getCacheHitInMemoryMostRecentSample in interface SampledCacheStatisticspublic long getCacheOffHeapHitRate()
getCacheOffHeapHitRate in interface SampledCacheMBeanpublic long getCacheHitOffHeapMostRecentSample()
getCacheHitOffHeapMostRecentSample in interface SampledCacheStatisticspublic long getCacheHitRate()
getCacheHitRate in interface SampledCacheMBeanpublic long getCacheHitMostRecentSample()
getCacheHitMostRecentSample in interface SampledCacheStatisticspublic long getCacheOnDiskHitRate()
getCacheOnDiskHitRate in interface SampledCacheMBeanpublic long getCacheHitOnDiskMostRecentSample()
getCacheHitOnDiskMostRecentSample in interface SampledCacheStatisticspublic long getCacheMissExpiredMostRecentSample()
getCacheMissExpiredMostRecentSample in interface SampledCacheStatisticspublic long getCacheMissRate()
getCacheMissRate in interface SampledCacheMBeanpublic long getCacheMissMostRecentSample()
getCacheMissMostRecentSample in interface SampledCacheStatisticspublic long getCacheInMemoryMissRate()
getCacheInMemoryMissRate in interface SampledCacheMBeanpublic long getCacheMissInMemoryMostRecentSample()
getCacheMissInMemoryMostRecentSample in interface SampledCacheStatisticspublic long getCacheOffHeapMissRate()
getCacheOffHeapMissRate in interface SampledCacheMBeanpublic long getCacheMissOffHeapMostRecentSample()
getCacheMissOffHeapMostRecentSample in interface SampledCacheStatisticspublic long getCacheOnDiskMissRate()
getCacheOnDiskMissRate in interface SampledCacheMBeanpublic long getCacheMissOnDiskMostRecentSample()
getCacheMissOnDiskMostRecentSample in interface SampledCacheStatisticspublic long getCacheMissNotFoundMostRecentSample()
getCacheMissNotFoundMostRecentSample in interface SampledCacheStatisticspublic int getStatisticsAccuracy()
getStatisticsAccuracy in interface LiveCacheStatisticsgetStatisticsAccuracy in interface SampledCacheStatisticspublic String getStatisticsAccuracyDescription()
getStatisticsAccuracyDescription in interface LiveCacheStatisticsgetStatisticsAccuracyDescription in interface SampledCacheStatisticspublic void clearStatistics()
clearStatistics in interface SampledCacheMBeanclearStatistics in interface LiveCacheStatisticsclearStatistics in interface SampledCacheStatisticspublic boolean isStatisticsEnabled()
isStatisticsEnabled in interface LiveCacheStatisticspublic boolean isSampledStatisticsEnabled()
isSampledStatisticsEnabled in interface SampledCacheStatisticspublic boolean isTerracottaClustered()
isTerracottaClustered in interface SampledCacheMBeanpublic String getTerracottaConsistency()
getTerracottaConsistency in interface SampledCacheMBeanpublic String getTerracottaStorageStrategy()
getTerracottaStorageStrategy in interface SampledCacheMBeanpublic void enableStatistics()
enableStatistics in interface SampledCacheMBeanSampledCacheMBean.enableStatistics()public void disableStatistics()
disableStatistics in interface SampledCacheMBeanSampledCacheMBean.disableStatistics()public void setStatisticsEnabled(boolean statsEnabled)
setStatisticsEnabled in interface SampledCacheMBeanSampledCacheMBean.setStatisticsEnabled(boolean)public void enableSampledStatistics()
enableSampledStatistics in interface SampledCacheMBeanSampledCacheMBean.enableSampledStatistics()public void disableSampledStatistics()
disableSampledStatistics in interface SampledCacheMBean()public float getCacheAverageGetTime()
getCacheAverageGetTime in interface SampledCacheMBeanpublic float getAverageGetTimeMillis()
getAverageGetTimeMillis in interface LiveCacheStatisticsLiveCacheStatistics.getAverageGetTimeMillis()public long getMaxGetTimeMillis()
getMaxGetTimeMillis in interface LiveCacheStatisticsLiveCacheStatistics.getMaxGetTimeMillis()public long getXaCommitCount()
getXaCommitCount in interface LiveCacheStatisticsLiveCacheStatistics.getXaCommitCount()public long getXaRollbackCount()
getXaRollbackCount in interface LiveCacheStatisticsLiveCacheStatistics.getXaRollbackCount()public boolean getHasWriteBehindWriter()
getHasWriteBehindWriter in interface SampledCacheMBeanpublic long getWriterQueueLength()
getWriterQueueLength in interface SampledCacheMBeangetWriterQueueLength in interface LiveCacheStatisticsLiveCacheStatistics.getWriterQueueLength()public int getWriterMaxQueueSize()
getWriterMaxQueueSize in interface SampledCacheMBeanCacheWriterConfiguration.getWriteBehindMaxQueueSize()public int getWriterConcurrency()
getWriterConcurrency in interface SampledCacheMBeanCacheWriterConfiguration.getWriteBehindConcurrency()public long getMinGetTimeMillis()
getMinGetTimeMillis in interface LiveCacheStatisticsLiveCacheStatistics.getMinGetTimeMillis()public long getCacheHitCount()
getCacheHitCount in interface LiveCacheStatisticsLiveCacheStatistics.getCacheHitCount()public long getCacheMissCount()
getCacheMissCount in interface LiveCacheStatisticsLiveCacheStatistics.getCacheMissCount()public long getInMemoryMissCount()
getInMemoryMissCount in interface LiveCacheStatisticsLiveCacheStatistics.getInMemoryMissCount()public long getOffHeapMissCount()
getOffHeapMissCount in interface LiveCacheStatisticsLiveCacheStatistics.getOffHeapMissCount()public long getOnDiskMissCount()
getOnDiskMissCount in interface LiveCacheStatisticsLiveCacheStatistics.getOnDiskMissCount()public long getCacheMissCountExpired()
getCacheMissCountExpired in interface LiveCacheStatisticsLiveCacheStatistics.getCacheMissCountExpired()public long getDiskExpiryThreadIntervalSeconds()
getDiskExpiryThreadIntervalSeconds in interface SampledCacheMBeanSampledCacheMBean.getDiskExpiryThreadIntervalSeconds()public void setDiskExpiryThreadIntervalSeconds(long seconds)
setDiskExpiryThreadIntervalSeconds in interface SampledCacheMBeanSampledCacheMBean.setDiskExpiryThreadIntervalSeconds(long)public long getMaxEntriesLocalHeap()
getMaxEntriesLocalHeap in interface SampledCacheMBeanSampledCacheMBean.getMaxEntriesLocalHeap()public void setMaxEntriesLocalHeap(long maxEntries)
setMaxEntriesLocalHeap in interface SampledCacheMBeanSampledCacheMBean.setMaxEntriesLocalHeap(long)public long getMaxBytesLocalHeap()
getMaxBytesLocalHeap in interface SampledCacheMBeanSampledCacheMBean.getMaxBytesLocalHeap()public void setMaxBytesLocalHeap(long maxBytes)
setMaxBytesLocalHeap in interface SampledCacheMBeanSampledCacheMBean.setMaxBytesLocalHeap(long)public void setMaxBytesLocalHeapAsString(String maxBytes)
setMaxBytesLocalHeapAsString in interface SampledCacheMBeanSampledCacheMBean.setMaxBytesLocalHeapAsString(String)public String getMaxBytesLocalHeapAsString()
getMaxBytesLocalHeapAsString in interface SampledCacheMBeanSampledCacheMBean.getMaxBytesLocalHeapAsString()public int getMaxElementsInMemory()
getMaxElementsInMemory in interface SampledCacheMBeanSampledCacheMBean.getMaxElementsInMemory()public void setMaxElementsInMemory(int maxElements)
setMaxElementsInMemory in interface SampledCacheMBeanSampledCacheMBean.setMaxElementsInMemory(int)public long getMaxEntriesLocalDisk()
getMaxEntriesLocalDisk in interface SampledCacheMBeanSampledCacheMBean.getMaxEntriesLocalDisk()public void setMaxEntriesLocalDisk(long maxEntries)
setMaxEntriesLocalDisk in interface SampledCacheMBeanSampledCacheMBean.setMaxEntriesLocalDisk(long)public void setMaxBytesLocalDisk(long maxBytes)
setMaxBytesLocalDisk in interface SampledCacheMBeanSampledCacheMBean.setMaxBytesLocalDisk(long)public void setMaxBytesLocalDiskAsString(String maxBytes)
setMaxBytesLocalDiskAsString in interface SampledCacheMBeanSampledCacheMBean.setMaxBytesLocalDiskAsString(String)public String getMaxBytesLocalDiskAsString()
getMaxBytesLocalDiskAsString in interface SampledCacheMBeanSampledCacheMBean.getMaxBytesLocalDiskAsString()public int getMaxElementsOnDisk()
getMaxElementsOnDisk in interface SampledCacheMBeanSampledCacheMBean.getMaxElementsOnDisk()public void setMaxElementsOnDisk(int maxElements)
setMaxElementsOnDisk in interface SampledCacheMBeanSampledCacheMBean.setMaxElementsOnDisk(int)public long getMaxBytesLocalDisk()
getMaxBytesLocalDisk in interface SampledCacheMBeanSampledCacheMBean.getMaxBytesLocalDisk()public long getMaxBytesLocalOffHeap()
getMaxBytesLocalOffHeap in interface SampledCacheMBeanSampledCacheMBean.getMaxBytesLocalOffHeap()public String getMaxBytesLocalOffHeapAsString()
getMaxBytesLocalOffHeapAsString in interface SampledCacheMBeanSampledCacheMBean.getMaxBytesLocalOffHeapAsString()public String getMemoryStoreEvictionPolicy()
getMemoryStoreEvictionPolicy in interface SampledCacheMBeanSampledCacheMBean.getMemoryStoreEvictionPolicy()public void setMemoryStoreEvictionPolicy(String evictionPolicy)
setMemoryStoreEvictionPolicy in interface SampledCacheMBeanSampledCacheMBean.setMemoryStoreEvictionPolicy(String)public long getTimeToIdleSeconds()
getTimeToIdleSeconds in interface SampledCacheMBeanSampledCacheMBean.getTimeToIdleSeconds()public void setTimeToIdleSeconds(long tti)
setTimeToIdleSeconds in interface SampledCacheMBeanSampledCacheMBean.setTimeToIdleSeconds(long)public long getTimeToLiveSeconds()
getTimeToLiveSeconds in interface SampledCacheMBeanSampledCacheMBean.getTimeToLiveSeconds()public void setTimeToLiveSeconds(long ttl)
setTimeToLiveSeconds in interface SampledCacheMBeanSampledCacheMBean.setTimeToLiveSeconds(long)public boolean isDiskPersistent()
isDiskPersistent in interface SampledCacheMBeanSampledCacheMBean.isDiskPersistent()public void setDiskPersistent(boolean diskPersistent)
setDiskPersistent in interface SampledCacheMBeanSampledCacheMBean.setDiskPersistent(boolean)public boolean isEternal()
isEternal in interface SampledCacheMBeanSampledCacheMBean.isEternal()public void setEternal(boolean eternal)
setEternal in interface SampledCacheMBeanSampledCacheMBean.setEternal(boolean)public boolean isOverflowToDisk()
isOverflowToDisk in interface SampledCacheMBeanSampledCacheMBean.isOverflowToDisk()public void setOverflowToDisk(boolean overflowToDisk)
setOverflowToDisk in interface SampledCacheMBeanSampledCacheMBean.setOverflowToDisk(boolean)public boolean isLoggingEnabled()
isLoggingEnabled in interface SampledCacheMBeanSampledCacheMBean.isLoggingEnabled()public void setLoggingEnabled(boolean enabled)
setLoggingEnabled in interface SampledCacheMBeanSampledCacheMBean.setLoggingEnabled(boolean)public boolean isPinned()
isPinned in interface SampledCacheMBeanSampledCacheMBean.isPinned()public String getPinnedToStore()
getPinnedToStore in interface SampledCacheMBeanSampledCacheMBean.getPinnedToStore()public long getEvictedCount()
getEvictedCount in interface LiveCacheStatisticsLiveCacheStatistics.getEvictedCount()public long getExpiredCount()
getExpiredCount in interface LiveCacheStatisticsLiveCacheStatistics.getExpiredCount()public long getInMemoryHitCount()
getInMemoryHitCount in interface LiveCacheStatisticsLiveCacheStatistics.getInMemoryHitCount()@Deprecated public long getInMemorySize()
getLocalHeapSize()
getInMemorySize in interface LiveCacheStatisticsLiveCacheStatistics.getInMemorySize()public long getOffHeapHitCount()
getOffHeapHitCount in interface LiveCacheStatisticsLiveCacheStatistics.getOffHeapHitCount()@Deprecated public long getOffHeapSize()
getLocalOffHeapSize()
getOffHeapSize in interface LiveCacheStatisticsLiveCacheStatistics.getOffHeapSize()public long getOnDiskHitCount()
getOnDiskHitCount in interface LiveCacheStatisticsLiveCacheStatistics.getOnDiskHitCount()@Deprecated public long getOnDiskSize()
getLocalDiskSize()
getOnDiskSize in interface LiveCacheStatisticsLiveCacheStatistics.getOnDiskSize()public long getLocalDiskSize()
getLocalDiskSize in interface LiveCacheStatisticsLiveCacheStatistics.getLocalDiskSize()public long getLocalHeapSize()
getLocalHeapSize in interface LiveCacheStatisticsLiveCacheStatistics.getLocalHeapSize()public long getLocalOffHeapSize()
getLocalOffHeapSize in interface LiveCacheStatisticsLiveCacheStatistics.getLocalOffHeapSize()public long getLocalDiskSizeInBytes()
getLocalDiskSizeInBytes in interface LiveCacheStatisticsLiveCacheStatistics.getLocalDiskSizeInBytes()public long getLocalHeapSizeInBytes()
getLocalHeapSizeInBytes in interface LiveCacheStatisticsLiveCacheStatistics.getLocalHeapSizeInBytes()public long getLocalOffHeapSizeInBytes()
getLocalOffHeapSizeInBytes in interface LiveCacheStatisticsLiveCacheStatistics.getLocalOffHeapSizeInBytes()public long getPutCount()
getPutCount in interface LiveCacheStatisticsLiveCacheStatistics.getPutCount()public long getRemovedCount()
getRemovedCount in interface LiveCacheStatisticsLiveCacheStatistics.getRemovedCount()public long getSize()
getSize in interface LiveCacheStatisticsLiveCacheStatistics.getSize()public long getUpdateCount()
getUpdateCount in interface LiveCacheStatisticsLiveCacheStatistics.getUpdateCount()public Map<String,Object> getCacheAttributes()
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class BaseEmitterBeanBaseEmitterBean.getNotificationInfo()public void deregistered(CacheConfiguration config)
deregistered in interface CacheConfigurationListener
public void maxBytesLocalHeapChanged(long oldValue,
long newValue)
maxBytesLocalHeapChanged in interface CacheConfigurationListeneroldValue - old value in bytesnewValue - new value in bytes
public void maxBytesLocalDiskChanged(long oldValue,
long newValue)
maxBytesLocalDiskChanged in interface CacheConfigurationListeneroldValue - old value in bytesnewValue - new value in bytes
public void diskCapacityChanged(int oldCapacity,
int newCapacity)
diskCapacityChanged in interface CacheConfigurationListeneroldCapacity - previous capacitynewCapacity - new capacity
public void loggingChanged(boolean oldValue,
boolean newValue)
loggingChanged in interface CacheConfigurationListeneroldValue - old value whether logging was enabled or notnewValue - new value whether logging was enabled or not
public void memoryCapacityChanged(int oldCapacity,
int newCapacity)
memoryCapacityChanged in interface CacheConfigurationListeneroldCapacity - previous capacitynewCapacity - new capacitypublic void registered(CacheConfiguration config)
registered in interface CacheConfigurationListener
public void timeToIdleChanged(long oldTimeToIdle,
long newTimeToIdle)
timeToIdleChanged in interface CacheConfigurationListeneroldTimeToIdle - previous time to idle valuenewTimeToIdle - new time to idle value
public void timeToLiveChanged(long oldTimeToLive,
long newTimeToLive)
timeToLiveChanged in interface CacheConfigurationListeneroldTimeToLive - previous time to live valuenewTimeToLive - new time to live valuepublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)protected void doDispose()
doDispose in class BaseEmitterBeanpublic long getAverageSearchTime()
getAverageSearchTime in interface SampledCacheStatisticspublic long getSearchesPerSecond()
getSearchesPerSecond in interface SampledCacheStatisticspublic boolean getTransactional()
getTransactional in interface SampledCacheMBeanCacheConfiguration.TransactionalModepublic boolean getSearchable()
getSearchable in interface SampledCacheMBeanSearchablepublic long getCacheSearchRate()
getCacheSearchRate in interface SampledCacheMBeanpublic long getCacheAverageSearchTime()
getCacheAverageSearchTime in interface SampledCacheMBeanpublic long getTransactionCommitRate()
getTransactionCommitRate in interface SampledCacheMBeanpublic long getCacheXaCommitsMostRecentSample()
getCacheXaCommitsMostRecentSample in interface SampledCacheStatisticspublic long getTransactionRollbackRate()
getTransactionRollbackRate in interface SampledCacheMBeanpublic long getCacheXaRollbacksMostRecentSample()
getCacheXaRollbacksMostRecentSample in interface SampledCacheStatistics
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||