|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 | |
---|---|
protected void |
doDispose()
Dispose callback of subclasses |
void |
flush()
Flushes all cache items from memory to the disk store, and from the DiskStore to disk. |
long |
getAverageGetTime()
Gets the average get time. |
long |
getAverageGetTimeNanos()
Average time in nanoseconds taken to get an element from the cache. |
long |
getAverageGetTimeNanosMostRecentSample()
Get most recent value for average time taken for get() operation in the cache. |
SampledRateCounter |
getAverageGetTimeSample()
Get the SampledRateCounter for average time taken for get() operation in the
cache. |
long |
getAverageSearchTime()
Gets the average search time. |
long |
getAverageSearchTimeNanos()
Get the average search execution time for searches finishing within the last sample period. |
SampledRateCounter |
getAverageSearchTimeSample()
Get the SampledRateCounter for average search execution time for searches finishing within the last sample period. |
Map<String,Object> |
getCacheAttributes()
getCacheAttributes |
long |
getCacheAverageSearchTimeNanos()
|
long |
getCacheClusterOfflineCount()
Count of cluster offline events for this node. |
long |
getCacheClusterOfflineMostRecentSample()
Gets the cache cluster offline most recent sample. |
SampledCounter |
getCacheClusterOfflineSample()
Get the SampledCounter for offline cache cluster events. |
long |
getCacheClusterOnlineCount()
Count of cluster online events for this node. |
long |
getCacheClusterOnlineMostRecentSample()
Gets the cache cluster online most recent sample. |
SampledCounter |
getCacheClusterOnlineSample()
Get the SampledCounter for online cache cluster events. |
long |
getCacheClusterRejoinCount()
Count of cluster rejoin events for this node. |
long |
getCacheClusterRejoinMostRecentSample()
Gets the cache cluster rejoin most recent sample. |
SampledCounter |
getCacheClusterRejoinSample()
Get the SampledCounter for rejoin cache cluster events. |
long |
getCacheElementEvictedMostRecentSample()
Get most recent value element evicted from cache. |
SampledCounter |
getCacheElementEvictedSample()
Get the SampledCounter element evicted from cache. |
long |
getCacheElementExpiredMostRecentSample()
Get most recent value element expired from cache. |
SampledCounter |
getCacheElementExpiredSample()
Get the SampledCounter element expired from cache. |
long |
getCacheElementPutMostRecentSample()
Get most recent value element puts in the cache. |
SampledCounter |
getCacheElementPutSample()
Get the SampledCounter element puts in the cache. |
long |
getCacheElementRemovedMostRecentSample()
Get most recent value element removed from cache. |
SampledCounter |
getCacheElementRemovedSample()
Get the SampledCounter element removed from cache. |
long |
getCacheElementUpdatedMostRecentSample()
Get most recent value element updates , i.e. |
SampledCounter |
getCacheElementUpdatedSample()
Get the SampledCounter element updates , i.e. |
long |
getCacheEvictionRate()
Gets the cache eviction rate. |
long |
getCacheExpirationRate()
Gets the cache expiration rate. |
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. |
SampledCounter |
getCacheHitInMemorySample()
Get the SampledCounter 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. |
SampledCounter |
getCacheHitOffHeapSample()
Get the SampledCounter for off-heap cache hit. |
long |
getCacheHitOnDiskMostRecentSample()
Get most recent value for on-disk cache hit. |
SampledCounter |
getCacheHitOnDiskSample()
Get the SampledCounter for on-disk cache hit. |
long |
getCacheHitRate()
Gets the cache hit rate. |
int |
getCacheHitRatio()
The ratio of hits to accesses (hits + misses). |
int |
getCacheHitRatioMostRecentSample()
Get most recent value for cache hit ratio. |
SampledCounter |
getCacheHitRatioSample()
Get the SampledCounter for cache hit ratio. |
SampledCounter |
getCacheHitSample()
Get the SampledCounter for cache hit. |
long |
getCacheInMemoryHitRate()
Gets the cache in memory hit rate. |
long |
getCacheInMemoryMissRate()
Gets the cache in memory miss rate. |
long |
getCacheMissCount()
Number of times a requested element was not found in the cache. |
long |
getCacheMissCountExpired()
Gets the cache miss count expired. |
long |
getCacheMissExpiredMostRecentSample()
Get most recent value for cache miss as result of the element getting expired. |
SampledCounter |
getCacheMissExpiredSample()
Get the SampledCounter for cache miss as result of the element getting
expired. |
long |
getCacheMissInMemoryMostRecentSample()
Get most recent value for in-memory cache miss. |
SampledCounter |
getCacheMissInMemorySample()
Get the SampledCounter 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. |
SampledCounter |
getCacheMissNotFoundSample()
Get the SampledCounter for cache miss as result of the element not found
in cache. |
long |
getCacheMissOffHeapMostRecentSample()
Get most recent value for off-heap cache miss. |
SampledCounter |
getCacheMissOffHeapSample()
Get the SampledCounter for off-heap cache miss. |
long |
getCacheMissOnDiskMostRecentSample()
Get most recent value for on-disk cache miss. |
SampledCounter |
getCacheMissOnDiskSample()
Get the SampledCounter for on-disk cache miss. |
long |
getCacheMissRate()
Gets the cache miss rate. |
SampledCounter |
getCacheMissSample()
Get the SampledCounter for cache miss. |
String |
getCacheName()
Gets the cache name. |
long |
getCacheOffHeapHitRate()
Gets the cache off heap hit rate. |
long |
getCacheOffHeapMissRate()
Gets the cache off heap miss rate. |
long |
getCacheOnDiskHitRate()
Gets the cache on disk hit rate. |
long |
getCacheOnDiskMissRate()
Gets the cache on disk miss rate. |
long |
getCachePutRate()
Gets the cache put rate. |
long |
getCacheRemoveRate()
Gets the cache remove rate. |
long |
getCacheSearchRate()
Gets the cache search rate. |
long |
getCacheUpdateRate()
Gets the cache update rate. |
long |
getCacheXaCommitsMostRecentSample()
Get most recent value of XA commits. |
SampledCounter |
getCacheXaCommitsSample()
Get the SampledCounter for number of XA Transaction commits that have completed in the interval. |
long |
getCacheXaRollbacksMostRecentSample()
Get most recent value of XA rollbacks. |
SampledCounter |
getCacheXaRollbacksSample()
Get the SampledCounter for number of XA Transaction rollbacks that have completed in the interval. |
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. |
SampledCounter |
getLocalDiskSizeInBytesSample()
Get the SampledCounter for local disk size in bytes. |
SampledCounter |
getLocalDiskSizeSample()
Get the SampledCounter for local disk size. |
long |
getLocalHeapSize()
Number of entries in the MemoryStore. |
long |
getLocalHeapSizeInBytes()
Number of of bytes used by entries in the MemoryStore. |
SampledCounter |
getLocalHeapSizeInBytesSample()
Get the SampledCounter for local heap size in bytes. |
SampledCounter |
getLocalHeapSizeSample()
Get the SampledCounter for local heap size. |
long |
getLocalOffHeapSize()
Number of entries in the off-heap store. |
long |
getLocalOffHeapSizeInBytes()
Number of of bytes used by entries in the off-heap store. |
SampledCounter |
getLocalOffHeapSizeInBytesSample()
Get the SampledCounter for local offheap size in bytes. |
SampledCounter |
getLocalOffHeapSizeSample()
Get the SampledCounter for local offheap size. |
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 |
getMaxEntriesInCache()
Configuration property accessor. |
long |
getMaxEntriesLocalDisk()
Configuration property accessor. |
long |
getMaxEntriesLocalHeap()
Configuration property accessor. |
Long |
getMaxGetTimeNanos()
Return maximum time taken for a get operation in the cache in nanoseconds. |
String |
getMemoryStoreEvictionPolicy()
Configuration property accessor. |
Long |
getMinGetTimeNanos()
Return minimum time taken for a get operation in the cache in nanoseconds. |
long |
getMostRecentRejoinTimeStampMillis()
Get the timestamp in nanos of the last rejoin. |
SampledCounter |
getMostRecentRejoinTimestampMillisSample()
Get the SampledCounter for last rejoin timestamp. |
long |
getNonStopFailureCount()
Gets the non stop failure count. |
long |
getNonStopFailureMostRecentSample()
Gets the non stop failure most recent sample. |
long |
getNonStopFailureRate()
Gets the non stop failure most recent sample. |
SampledCounter |
getNonStopFailureSample()
Gets the nonstop failure sample. |
long |
getNonStopRejoinTimeoutCount()
Gets the non stop rejoin timeout count. |
long |
getNonStopRejoinTimeoutMostRecentSample()
Gets the non stop rejoin most recent sample. |
long |
getNonStopRejoinTimeoutRate()
Gets the non stop rejoin most recent sample. |
SampledCounter |
getNonStopRejoinTimeoutSample()
Gets the nonstop rejoin sample. |
long |
getNonStopSuccessCount()
Gets the non stop success count. |
long |
getNonStopSuccessMostRecentSample()
Gets the non stop success most recent sample. |
long |
getNonStopSuccessRate()
Gets the non stop success most recent sample. |
SampledCounter |
getNonStopSuccessSample()
Gets the nonstop success sample. |
long |
getNonStopTimeoutCount()
Gets the non stop timeout count. |
long |
getNonStopTimeoutMostRecentSample()
Gets the non stop timeout most recent sample. |
long |
getNonStopTimeoutRate()
Gets the non stop timeout most recent sample. |
int |
getNonstopTimeoutRatio()
Get the ratio of nonstop timeouts+rejoin timeouts to operations |
SampledCounter |
getNonStopTimeoutSample()
Gets the nonstop timeout sample. |
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 |
getPersistenceStrategy()
getPersistenceStrategy |
String |
getPinnedToStore()
Configuration property accessor. |
long |
getPutCount()
Number of puts that has happened in the cache. |
SampledCounter |
getRemoteSizeSample()
Get the SampledCounter for remote size. |
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. |
SampledCounter |
getSearchesPerSecondSample()
Get the SampledCounter for number of searches that have finished in the interval. |
long |
getSize()
Size of the cache based on current accuracy settings. |
SampledCounter |
getSizeSample()
Get the SampledCounter for cache size. |
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()
Gets the transaction commit rate. |
long |
getTransactionRollbackRate()
Gets the transaction rollback rate. |
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. |
SampledCounter |
getWriterQueueLengthSample()
Get the SampledCounter for writer queue length. |
long |
getXaCommitCount()
Return the Cache's XAResource commit calls count. |
long |
getXaRecoveredCount()
Return the Cache's XAResource recovered XIDs 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. |
boolean |
isDiskPersistent()
Configuration property accessor. |
boolean |
isEnabled()
Is the cache enabled?. |
boolean |
isEternal()
Configuration property accessor. |
boolean |
isLocalHeapCountBased()
Check if the local heap is measured with ARC or in element count. |
boolean |
isLoggingEnabled()
Configuration property accessor. |
boolean |
isNodeBulkLoadEnabled()
Is the cache in bulk-load mode locally?. |
boolean |
isNodeCoherent()
Deprecated. |
boolean |
isOverflowToDisk()
Configuration property accessor. |
boolean |
isOverflowToOffHeap()
isOverflowToOffHeap |
boolean |
isPinned()
Configuration property accessor. |
boolean |
isTerracottaClustered()
Is the cache configured with Terracotta clustering?. |
void |
propertyChange(PropertyChangeEvent evt)
|
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 |
setMaxEntriesInCache(long maxEntries)
setMaxEntriesInCache. |
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 |
setTimeToIdleSeconds(long tti)
setTimeToIdleSeconds. |
void |
setTimeToLiveSeconds(long ttl)
setTimeToLiveSeconds. |
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.management.sampled.LegacyCacheStatistics |
---|
dispose |
Constructor Detail |
---|
public SampledCache(Ehcache cache) throws NotCompliantMBeanException
Ehcache
cache
- the cache object to use in initializing this sampled jmx mbean
NotCompliantMBeanException
- if object doesn't comply with mbean specMethod Detail |
---|
public boolean isEnabled()
isEnabled
in interface CacheSampler
public void setEnabled(boolean enabled)
setEnabled
in interface CacheSampler
enabled
- the new enabledpublic boolean isClusterBulkLoadEnabled()
isClusterBulkLoadEnabled
in interface CacheSampler
public boolean isNodeBulkLoadEnabled()
isNodeBulkLoadEnabled
in interface CacheSampler
public void setNodeBulkLoadEnabled(boolean bulkLoadEnabled)
setNodeBulkLoadEnabled
in interface CacheSampler
bulkLoadEnabled
- the new node bulk load enabledpublic void flush()
flush
in interface CacheSampler
public String getCacheName()
getCacheName
in interface LegacyCacheStatistics
public String getStatus()
getStatus
in interface CacheSampler
public void removeAll()
removeAll
in interface CacheSampler
public long getAverageGetTimeNanosMostRecentSample()
LegacyCacheStatistics
getAverageGetTimeNanosMostRecentSample
in interface LegacyCacheStatistics
public long getCacheEvictionRate()
getCacheEvictionRate
in interface CacheSampler
public long getCacheElementEvictedMostRecentSample()
getCacheElementEvictedMostRecentSample
in interface LegacyCacheStatistics
public long getCacheExpirationRate()
getCacheExpirationRate
in interface CacheSampler
public long getCacheElementExpiredMostRecentSample()
getCacheElementExpiredMostRecentSample
in interface LegacyCacheStatistics
public long getCachePutRate()
getCachePutRate
in interface CacheSampler
public long getCacheElementPutMostRecentSample()
getCacheElementPutMostRecentSample
in interface LegacyCacheStatistics
public long getCacheRemoveRate()
getCacheRemoveRate
in interface CacheSampler
public long getCacheElementRemovedMostRecentSample()
getCacheElementRemovedMostRecentSample
in interface LegacyCacheStatistics
public long getCacheUpdateRate()
getCacheUpdateRate
in interface CacheSampler
public long getCacheElementUpdatedMostRecentSample()
getCacheElementUpdatedMostRecentSample
in interface LegacyCacheStatistics
public long getCacheInMemoryHitRate()
getCacheInMemoryHitRate
in interface CacheSampler
public long getCacheHitInMemoryMostRecentSample()
getCacheHitInMemoryMostRecentSample
in interface LegacyCacheStatistics
public long getCacheOffHeapHitRate()
getCacheOffHeapHitRate
in interface CacheSampler
public long getCacheHitOffHeapMostRecentSample()
getCacheHitOffHeapMostRecentSample
in interface LegacyCacheStatistics
public long getCacheHitRate()
getCacheHitRate
in interface CacheSampler
public long getCacheHitMostRecentSample()
getCacheHitMostRecentSample
in interface LegacyCacheStatistics
public long getCacheOnDiskHitRate()
getCacheOnDiskHitRate
in interface CacheSampler
public long getCacheHitOnDiskMostRecentSample()
getCacheHitOnDiskMostRecentSample
in interface LegacyCacheStatistics
public long getCacheMissExpiredMostRecentSample()
getCacheMissExpiredMostRecentSample
in interface LegacyCacheStatistics
public long getCacheMissRate()
getCacheMissRate
in interface CacheSampler
public long getCacheMissMostRecentSample()
getCacheMissMostRecentSample
in interface LegacyCacheStatistics
public long getCacheInMemoryMissRate()
getCacheInMemoryMissRate
in interface CacheSampler
public long getCacheMissInMemoryMostRecentSample()
getCacheMissInMemoryMostRecentSample
in interface LegacyCacheStatistics
public long getCacheOffHeapMissRate()
getCacheOffHeapMissRate
in interface CacheSampler
public long getCacheMissOffHeapMostRecentSample()
getCacheMissOffHeapMostRecentSample
in interface LegacyCacheStatistics
public long getCacheOnDiskMissRate()
getCacheOnDiskMissRate
in interface CacheSampler
public long getCacheMissOnDiskMostRecentSample()
getCacheMissOnDiskMostRecentSample
in interface LegacyCacheStatistics
public long getCacheMissNotFoundMostRecentSample()
getCacheMissNotFoundMostRecentSample
in interface LegacyCacheStatistics
public boolean isTerracottaClustered()
isTerracottaClustered
in interface CacheSampler
public String getTerracottaConsistency()
getTerracottaConsistency
in interface CacheSampler
@Deprecated public void setNodeCoherent(boolean coherent)
setNodeBulkLoadEnabled(boolean)
instead
setNodeCoherent
in interface SampledCacheMBean
@Deprecated public boolean isClusterCoherent()
isClusterCoherent
in interface SampledCacheMBean
@Deprecated public boolean isNodeCoherent()
isNodeCoherent
in interface SampledCacheMBean
public long getAverageGetTimeNanos()
getAverageGetTimeNanos
in interface LegacyCacheStatistics
LegacyCacheStatistics.getAverageGetTimeNanos()
public Long getMaxGetTimeNanos()
getMaxGetTimeNanos
in interface LegacyCacheStatistics
LiveCacheStatistics
public Long getMinGetTimeNanos()
getMinGetTimeNanos
in interface LegacyCacheStatistics
LiveCacheStatistics
public long getXaCommitCount()
getXaCommitCount
in interface LegacyCacheStatistics
LiveCacheStatistics
public long getXaRollbackCount()
getXaRollbackCount
in interface LegacyCacheStatistics
LiveCacheStatistics
public long getXaRecoveredCount()
getXaRecoveredCount
in interface LegacyCacheStatistics
LiveCacheStatistics
public boolean getHasWriteBehindWriter()
getHasWriteBehindWriter
in interface CacheSampler
public long getWriterQueueLength()
getWriterQueueLength
in interface CacheSampler
getWriterQueueLength
in interface LegacyCacheStatistics
LiveCacheStatistics
public int getWriterMaxQueueSize()
getWriterMaxQueueSize
in interface CacheSampler
CacheWriterConfiguration.getWriteBehindMaxQueueSize()
public int getWriterConcurrency()
getWriterConcurrency
in interface CacheSampler
CacheWriterConfiguration.getWriteBehindConcurrency()
public long getCacheHitCount()
getCacheHitCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getCacheHitCount()
public long getCacheMissCount()
getCacheMissCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getCacheMissCount()
public long getInMemoryMissCount()
getInMemoryMissCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getInMemoryMissCount()
public long getOffHeapMissCount()
getOffHeapMissCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getOffHeapMissCount()
public long getOnDiskMissCount()
getOnDiskMissCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getOnDiskMissCount()
public long getCacheMissCountExpired()
getCacheMissCountExpired
in interface LegacyCacheStatistics
LegacyCacheStatistics.getCacheMissCountExpired()
public long getDiskExpiryThreadIntervalSeconds()
getDiskExpiryThreadIntervalSeconds
in interface CacheSampler
CacheSampler.getDiskExpiryThreadIntervalSeconds()
public void setDiskExpiryThreadIntervalSeconds(long seconds)
setDiskExpiryThreadIntervalSeconds
in interface CacheSampler
seconds
- the new disk expiry thread interval secondsCacheSampler.setDiskExpiryThreadIntervalSeconds(long)
public long getMaxEntriesLocalHeap()
getMaxEntriesLocalHeap
in interface CacheSampler
CacheSampler.getMaxEntriesLocalHeap()
public void setMaxEntriesLocalHeap(long maxEntries)
setMaxEntriesLocalHeap
in interface CacheSampler
maxEntries
- the new max entries local heapCacheSampler.setMaxEntriesLocalHeap(long)
public long getMaxBytesLocalHeap()
getMaxBytesLocalHeap
in interface CacheSampler
CacheSampler.getMaxBytesLocalHeap()
public void setMaxBytesLocalHeap(long maxBytes)
setMaxBytesLocalHeap
in interface CacheSampler
maxBytes
- the new max bytes local heapCacheSampler.setMaxBytesLocalHeap(long)
public void setMaxBytesLocalHeapAsString(String maxBytes)
setMaxBytesLocalHeapAsString
in interface CacheSampler
maxBytes
- the new max bytes local heap as stringCacheSampler.setMaxBytesLocalHeapAsString(String)
public String getMaxBytesLocalHeapAsString()
getMaxBytesLocalHeapAsString
in interface CacheSampler
CacheSampler.getMaxBytesLocalHeapAsString()
public int getMaxElementsInMemory()
getMaxElementsInMemory
in interface SampledCacheMBean
public void setMaxElementsInMemory(int maxElements)
setMaxElementsInMemory
in interface SampledCacheMBean
public long getMaxEntriesLocalDisk()
getMaxEntriesLocalDisk
in interface CacheSampler
CacheSampler.getMaxEntriesLocalDisk()
public long getMaxEntriesInCache()
getMaxEntriesInCache
in interface CacheSampler
public void setMaxEntriesLocalDisk(long maxEntries)
setMaxEntriesLocalDisk
in interface CacheSampler
maxEntries
- the new max entries local diskCacheSampler.setMaxEntriesLocalDisk(long)
public void setMaxBytesLocalDisk(long maxBytes)
setMaxBytesLocalDisk
in interface CacheSampler
maxBytes
- the new max bytes local diskCacheSampler.setMaxBytesLocalDisk(long)
public void setMaxBytesLocalDiskAsString(String maxBytes)
setMaxBytesLocalDiskAsString
in interface CacheSampler
maxBytes
- the new max bytes local disk as stringCacheSampler.setMaxBytesLocalDiskAsString(String)
public String getMaxBytesLocalDiskAsString()
getMaxBytesLocalDiskAsString
in interface CacheSampler
CacheSampler.getMaxBytesLocalDiskAsString()
public int getMaxElementsOnDisk()
getMaxElementsOnDisk
in interface CacheSampler
CacheSampler.getMaxElementsOnDisk()
public void setMaxElementsOnDisk(int maxElements)
setMaxElementsOnDisk
in interface CacheSampler
maxElements
- the new max elements on diskCacheSampler.setMaxElementsOnDisk(int)
public void setMaxEntriesInCache(long maxEntries)
setMaxEntriesInCache
in interface CacheSampler
maxEntries
- the new max entries in cachepublic long getMaxBytesLocalDisk()
getMaxBytesLocalDisk
in interface CacheSampler
CacheSampler.getMaxBytesLocalDisk()
public long getMaxBytesLocalOffHeap()
getMaxBytesLocalOffHeap
in interface CacheSampler
CacheSampler.getMaxBytesLocalOffHeap()
public String getMaxBytesLocalOffHeapAsString()
getMaxBytesLocalOffHeapAsString
in interface CacheSampler
CacheSampler.getMaxBytesLocalOffHeapAsString()
public String getMemoryStoreEvictionPolicy()
getMemoryStoreEvictionPolicy
in interface CacheSampler
CacheSampler.getMemoryStoreEvictionPolicy()
public void setMemoryStoreEvictionPolicy(String evictionPolicy)
setMemoryStoreEvictionPolicy
in interface CacheSampler
evictionPolicy
- the new memory store eviction policyCacheSampler.setMemoryStoreEvictionPolicy(String)
public long getTimeToIdleSeconds()
getTimeToIdleSeconds
in interface CacheSampler
CacheSampler.getTimeToIdleSeconds()
public void setTimeToIdleSeconds(long tti)
setTimeToIdleSeconds
in interface CacheSampler
tti
- the new time to idle secondsCacheSampler.setTimeToIdleSeconds(long)
public long getTimeToLiveSeconds()
getTimeToLiveSeconds
in interface CacheSampler
CacheSampler.getTimeToLiveSeconds()
public void setTimeToLiveSeconds(long ttl)
setTimeToLiveSeconds
in interface CacheSampler
ttl
- the new time to live secondsCacheSampler.setTimeToLiveSeconds(long)
public boolean isOverflowToOffHeap()
isOverflowToOffHeap
in interface CacheSampler
CacheSampler.isOverflowToOffHeap()
public boolean isDiskPersistent()
isDiskPersistent
in interface CacheSampler
CacheSampler.isDiskPersistent()
public void setDiskPersistent(boolean diskPersistent)
setDiskPersistent
in interface CacheSampler
diskPersistent
- the new disk persistentCacheSampler.setDiskPersistent(boolean)
public String getPersistenceStrategy()
getPersistenceStrategy
in interface CacheSampler
CacheSampler.getPersistenceStrategy()
public boolean isEternal()
isEternal
in interface CacheSampler
CacheSampler.isEternal()
public void setEternal(boolean eternal)
setEternal
in interface CacheSampler
eternal
- the new eternalCacheSampler.setEternal(boolean)
public boolean isOverflowToDisk()
isOverflowToDisk
in interface CacheSampler
CacheSampler.isOverflowToDisk()
public void setOverflowToDisk(boolean overflowToDisk)
setOverflowToDisk
in interface CacheSampler
overflowToDisk
- the new overflow to diskCacheSampler.setOverflowToDisk(boolean)
public boolean isLoggingEnabled()
isLoggingEnabled
in interface CacheSampler
CacheSampler.isLoggingEnabled()
public void setLoggingEnabled(boolean enabled)
setLoggingEnabled
in interface CacheSampler
enabled
- the new logging enabledCacheSampler.setLoggingEnabled(boolean)
public boolean isPinned()
isPinned
in interface CacheSampler
CacheSampler.isPinned()
public String getPinnedToStore()
getPinnedToStore
in interface CacheSampler
CacheSampler.getPinnedToStore()
public long getEvictedCount()
getEvictedCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getEvictedCount()
public long getExpiredCount()
getExpiredCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getExpiredCount()
public long getInMemoryHitCount()
getInMemoryHitCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getInMemoryHitCount()
@Deprecated public long getInMemorySize()
getLocalHeapSize()
getInMemorySize
in interface LegacyCacheStatistics
getInMemorySize()
public long getOffHeapHitCount()
getOffHeapHitCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getOffHeapHitCount()
@Deprecated public long getOffHeapSize()
getLocalOffHeapSize()
getOffHeapSize
in interface LegacyCacheStatistics
LegacyCacheStatistics.getOffHeapSize()
public long getOnDiskHitCount()
getOnDiskHitCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getOnDiskHitCount()
@Deprecated public long getOnDiskSize()
getLocalDiskSize()
getOnDiskSize
in interface LegacyCacheStatistics
LegacyCacheStatistics.getOnDiskSize()
public long getLocalDiskSize()
getLocalDiskSize
in interface LegacyCacheStatistics
LegacyCacheStatistics.getLocalDiskSize()
public long getLocalHeapSize()
getLocalHeapSize
in interface LegacyCacheStatistics
LegacyCacheStatistics.getLocalHeapSize()
public long getLocalOffHeapSize()
getLocalOffHeapSize
in interface LegacyCacheStatistics
LegacyCacheStatistics.getLocalOffHeapSize()
public long getLocalDiskSizeInBytes()
getLocalDiskSizeInBytes
in interface LegacyCacheStatistics
LegacyCacheStatistics.getLocalDiskSizeInBytes()
public long getLocalHeapSizeInBytes()
getLocalHeapSizeInBytes
in interface LegacyCacheStatistics
LegacyCacheStatistics.getLocalHeapSizeInBytes()
public long getLocalOffHeapSizeInBytes()
getLocalOffHeapSizeInBytes
in interface LegacyCacheStatistics
LegacyCacheStatistics.getLocalOffHeapSizeInBytes()
public long getPutCount()
getPutCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getPutCount()
public long getRemovedCount()
getRemovedCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getRemovedCount()
public long getSize()
getSize
in interface LegacyCacheStatistics
LegacyCacheStatistics.getSize()
public long getUpdateCount()
getUpdateCount
in interface LegacyCacheStatistics
LegacyCacheStatistics.getUpdateCount()
public Map<String,Object> getCacheAttributes()
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
getNotificationInfo
in class BaseEmitterBean
BaseEmitterBean.getNotificationInfo()
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
protected void doDispose()
doDispose
in class BaseEmitterBean
public long getSearchesPerSecond()
getSearchesPerSecond
in interface LegacyCacheStatistics
public boolean getTransactional()
getTransactional
in interface CacheSampler
CacheConfiguration.TransactionalMode
public boolean getSearchable()
getSearchable
in interface CacheSampler
Searchable
public long getCacheSearchRate()
getCacheSearchRate
in interface CacheSampler
public long getCacheAverageSearchTimeNanos()
public long getTransactionCommitRate()
getTransactionCommitRate
in interface CacheSampler
public long getCacheXaCommitsMostRecentSample()
getCacheXaCommitsMostRecentSample
in interface LegacyCacheStatistics
public long getTransactionRollbackRate()
getTransactionRollbackRate
in interface CacheSampler
public long getCacheXaRollbacksMostRecentSample()
getCacheXaRollbacksMostRecentSample
in interface LegacyCacheStatistics
public boolean isLocalHeapCountBased()
isLocalHeapCountBased
in interface LegacyCacheStatistics
public int getCacheHitRatio()
getCacheHitRatio
in interface LegacyCacheStatistics
public int getCacheHitRatioMostRecentSample()
getCacheHitRatioMostRecentSample
in interface LegacyCacheStatistics
public long getAverageSearchTimeNanos()
LegacyCacheStatistics
getAverageSearchTimeNanos
in interface LegacyCacheStatistics
public SampledCounter getCacheHitSample()
CacheSampler
SampledCounter
for cache hit.
getCacheHitSample
in interface CacheSampler
SampledCounter
for cache hit countpublic SampledCounter getCacheHitRatioSample()
CacheSampler
SampledCounter
for cache hit ratio.
getCacheHitRatioSample
in interface CacheSampler
SampledCounter
for cache hit ratiopublic SampledCounter getCacheHitInMemorySample()
CacheSampler
SampledCounter
for in-memory cache hit.
getCacheHitInMemorySample
in interface CacheSampler
SampledCounter
for cache hit count in memorypublic SampledCounter getCacheHitOffHeapSample()
CacheSampler
SampledCounter
for off-heap cache hit.
getCacheHitOffHeapSample
in interface CacheSampler
SampledCounter
for cache hit count in off-heappublic SampledCounter getCacheHitOnDiskSample()
CacheSampler
SampledCounter
for on-disk cache hit.
getCacheHitOnDiskSample
in interface CacheSampler
SampledCounter
for cache hit count on diskpublic SampledCounter getCacheMissSample()
CacheSampler
SampledCounter
for cache miss.
getCacheMissSample
in interface CacheSampler
SampledCounter
for cache miss countpublic SampledCounter getCacheMissInMemorySample()
CacheSampler
SampledCounter
for in-memory cache miss.
getCacheMissInMemorySample
in interface CacheSampler
SampledCounter
for cache miss count in memorypublic SampledCounter getCacheMissOffHeapSample()
CacheSampler
SampledCounter
for off-heap cache miss.
getCacheMissOffHeapSample
in interface CacheSampler
SampledCounter
for cache miss count in off-heappublic SampledCounter getCacheMissOnDiskSample()
CacheSampler
SampledCounter
for on-disk cache miss.
getCacheMissOnDiskSample
in interface CacheSampler
SampledCounter
for cache miss count on diskpublic SampledCounter getCacheMissExpiredSample()
CacheSampler
SampledCounter
for cache miss as result of the element getting
expired.
getCacheMissExpiredSample
in interface CacheSampler
SampledCounter
for cache miss count and the reason for miss
being the element got expiredpublic SampledCounter getCacheMissNotFoundSample()
CacheSampler
SampledCounter
for cache miss as result of the element not found
in cache.
getCacheMissNotFoundSample
in interface CacheSampler
SampledCounter
for cache miss not found countpublic SampledCounter getCacheElementEvictedSample()
CacheSampler
SampledCounter
element evicted from cache.
getCacheElementEvictedSample
in interface CacheSampler
SampledCounter
for element evicted countpublic SampledCounter getCacheElementRemovedSample()
CacheSampler
SampledCounter
element removed from cache.
getCacheElementRemovedSample
in interface CacheSampler
SampledCounter
for element removed countpublic SampledCounter getCacheElementExpiredSample()
CacheSampler
SampledCounter
element expired from cache.
getCacheElementExpiredSample
in interface CacheSampler
public SampledCounter getCacheElementPutSample()
CacheSampler
SampledCounter
element puts in the cache.
getCacheElementPutSample
in interface CacheSampler
SampledCounter
for number of element putspublic SampledCounter getCacheElementUpdatedSample()
CacheSampler
SampledCounter
element updates , i.e. put() on elements with
already existing keys in the cache
getCacheElementUpdatedSample
in interface CacheSampler
SampledCounter
d value for element update countpublic SampledRateCounter getAverageGetTimeSample()
CacheSampler
SampledRateCounter
for average time taken for get() operation in the
cache.
getAverageGetTimeSample
in interface CacheSampler
SampledRateCounter
of average get time taken for a get operationpublic SampledRateCounter getAverageSearchTimeSample()
CacheSampler
SampledRateCounter
for average search execution time for searches finishing within the last sample period.
getAverageSearchTimeSample
in interface CacheSampler
SampledRateCounter
of average search time takenpublic SampledCounter getSearchesPerSecondSample()
CacheSampler
SampledCounter
for number of searches that have finished in the interval.
getSearchesPerSecondSample
in interface CacheSampler
SampledCounter
for number of searchespublic SampledCounter getCacheXaCommitsSample()
CacheSampler
SampledCounter
for number of XA Transaction commits that have completed in the interval.
getCacheXaCommitsSample
in interface CacheSampler
SampledCounter
for number XA Transaction commitspublic SampledCounter getCacheXaRollbacksSample()
CacheSampler
SampledCounter
for number of XA Transaction rollbacks that have completed in the interval.
getCacheXaRollbacksSample
in interface CacheSampler
SampledCounter
for number XA Transaction rollbackspublic long getAverageSearchTime()
CacheSampler
getAverageSearchTime
in interface CacheSampler
public long getAverageGetTime()
CacheSampler
getAverageGetTime
in interface CacheSampler
public SampledCounter getSizeSample()
CacheSampler
SampledCounter
for cache size.
getSizeSample
in interface CacheSampler
SampledCounter
for cache sizepublic SampledCounter getLocalHeapSizeSample()
CacheSampler
SampledCounter
for local heap size.
getLocalHeapSizeSample
in interface CacheSampler
SampledCounter
for local heap sizepublic SampledCounter getLocalHeapSizeInBytesSample()
CacheSampler
SampledCounter
for local heap size in bytes.
getLocalHeapSizeInBytesSample
in interface CacheSampler
SampledCounter
for local heap size in bytespublic SampledCounter getLocalOffHeapSizeSample()
CacheSampler
SampledCounter
for local offheap size.
getLocalOffHeapSizeSample
in interface CacheSampler
SampledCounter
for local offheap sizepublic SampledCounter getLocalOffHeapSizeInBytesSample()
CacheSampler
SampledCounter
for local offheap size in bytes.
getLocalOffHeapSizeInBytesSample
in interface CacheSampler
SampledCounter
for local offheap size in bytespublic SampledCounter getLocalDiskSizeSample()
CacheSampler
SampledCounter
for local disk size.
getLocalDiskSizeSample
in interface CacheSampler
SampledCounter
for local disk sizepublic SampledCounter getLocalDiskSizeInBytesSample()
CacheSampler
SampledCounter
for local disk size in bytes.
getLocalDiskSizeInBytesSample
in interface CacheSampler
SampledCounter
for local disk size in bytespublic SampledCounter getRemoteSizeSample()
CacheSampler
SampledCounter
for remote size.
getRemoteSizeSample
in interface CacheSampler
SampledCounter
for remote sizepublic SampledCounter getWriterQueueLengthSample()
CacheSampler
SampledCounter
for writer queue length.
getWriterQueueLengthSample
in interface CacheSampler
SampledCounter
for writer queue lengthpublic SampledCounter getCacheClusterOfflineSample()
CacheSampler
SampledCounter
for offline cache cluster events.
getCacheClusterOfflineSample
in interface CacheSampler
SampledCounter
for offline cache cluster eventspublic SampledCounter getCacheClusterOnlineSample()
CacheSampler
SampledCounter
for online cache cluster events.
getCacheClusterOnlineSample
in interface CacheSampler
SampledCounter
for online cache cluster eventspublic SampledCounter getCacheClusterRejoinSample()
CacheSampler
SampledCounter
for rejoin cache cluster events.
getCacheClusterRejoinSample
in interface CacheSampler
SampledCounter
for rejoin cache cluster eventspublic long getCacheClusterOfflineCount()
LegacyCacheStatistics
getCacheClusterOfflineCount
in interface LegacyCacheStatistics
public long getCacheClusterRejoinCount()
LegacyCacheStatistics
getCacheClusterRejoinCount
in interface LegacyCacheStatistics
public long getCacheClusterOnlineCount()
LegacyCacheStatistics
getCacheClusterOnlineCount
in interface LegacyCacheStatistics
public long getCacheClusterOfflineMostRecentSample()
LegacyCacheStatistics
getCacheClusterOfflineMostRecentSample
in interface LegacyCacheStatistics
public long getCacheClusterRejoinMostRecentSample()
LegacyCacheStatistics
getCacheClusterRejoinMostRecentSample
in interface LegacyCacheStatistics
public long getCacheClusterOnlineMostRecentSample()
LegacyCacheStatistics
getCacheClusterOnlineMostRecentSample
in interface LegacyCacheStatistics
public long getMostRecentRejoinTimeStampMillis()
CacheSampler
getMostRecentRejoinTimeStampMillis
in interface CacheSampler
public SampledCounter getMostRecentRejoinTimestampMillisSample()
CacheSampler
SampledCounter
for last rejoin timestamp.
getMostRecentRejoinTimestampMillisSample
in interface CacheSampler
SampledCounter
for last rejoin timestamppublic SampledCounter getNonStopSuccessSample()
CacheSampler
getNonStopSuccessSample
in interface CacheSampler
public SampledCounter getNonStopFailureSample()
CacheSampler
getNonStopFailureSample
in interface CacheSampler
public SampledCounter getNonStopRejoinTimeoutSample()
CacheSampler
getNonStopRejoinTimeoutSample
in interface CacheSampler
public SampledCounter getNonStopTimeoutSample()
CacheSampler
getNonStopTimeoutSample
in interface CacheSampler
public long getNonStopSuccessCount()
LegacyCacheStatistics
getNonStopSuccessCount
in interface LegacyCacheStatistics
public long getNonStopFailureCount()
LegacyCacheStatistics
getNonStopFailureCount
in interface LegacyCacheStatistics
public long getNonStopRejoinTimeoutCount()
LegacyCacheStatistics
getNonStopRejoinTimeoutCount
in interface LegacyCacheStatistics
public long getNonStopTimeoutCount()
LegacyCacheStatistics
getNonStopTimeoutCount
in interface LegacyCacheStatistics
public long getNonStopSuccessMostRecentSample()
LegacyCacheStatistics
getNonStopSuccessMostRecentSample
in interface LegacyCacheStatistics
public long getNonStopFailureMostRecentSample()
LegacyCacheStatistics
getNonStopFailureMostRecentSample
in interface LegacyCacheStatistics
public long getNonStopRejoinTimeoutMostRecentSample()
LegacyCacheStatistics
getNonStopRejoinTimeoutMostRecentSample
in interface LegacyCacheStatistics
public long getNonStopTimeoutMostRecentSample()
LegacyCacheStatistics
getNonStopTimeoutMostRecentSample
in interface LegacyCacheStatistics
public long getNonStopSuccessRate()
CacheSampler
getNonStopSuccessRate
in interface CacheSampler
public long getNonStopFailureRate()
CacheSampler
getNonStopFailureRate
in interface CacheSampler
public long getNonStopRejoinTimeoutRate()
CacheSampler
getNonStopRejoinTimeoutRate
in interface CacheSampler
public long getNonStopTimeoutRate()
CacheSampler
getNonStopTimeoutRate
in interface CacheSampler
public int getNonstopTimeoutRatio()
LegacyCacheStatistics
getNonstopTimeoutRatio
in interface LegacyCacheStatistics
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |