Top Description Fields Methods
net.sf.ehcache.management.sampled

public Interface SampledCacheMBean

extends CacheSampler
Known Direct Implementers
net.sf.ehcache.management.sampled.SampledCache

An MBean for Cache exposing cache statistics. Extends from both CacheSampler

Author
Abhishek Sanoujam

Field Summary

Modifier and TypeField and Description
public static final String
CACHE_CHANGED

CACHE_CHANGED

public static final String
CACHE_CLEARED

CACHE_CLEARED

public static final String
CACHE_ENABLED

CACHE_ENABLED

public static final String
CACHE_FLUSHED

CACHE_FLUSHED

public static final String
CACHE_STATISTICS_ENABLED

CACHE_STATISTICS_ENABLED

public static final String
CACHE_STATISTICS_RESET

CACHE_STATISTICS_RESET

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

Max elements in memory config setting value
getMaxElementsInMemory
()

Deprecated use getMaxEntriesLocalHeap() instead
Configuration property accessor
public boolean
isClusterCoherent()

Deprecated use isClusterBulkLoadEnabled() instead
Is the cache coherent cluster-wide?
public boolean
isNodeCoherent()

Deprecated use isNodeBulkLoadEnabled() instead
Is the cache coherent locally?
public void
setMaxElementsInMemory(int maxElements)

setMaxElementsInMemory
public void
setNodeCoherent(boolean coherent)

Deprecated use setNodeBulkLoadEnabled(boolean) instead
Enabled/disable cache coherence mode for this node.
Inherited from net.sf.ehcache.management.sampled.CacheSampler:
flushgetAverageGetTimegetAverageGetTimeSamplegetAverageSearchTimegetAverageSearchTimeSamplegetCacheClusterOfflineSamplegetCacheClusterOnlineSamplegetCacheClusterRejoinSamplegetCacheElementEvictedSamplegetCacheElementExpiredSamplegetCacheElementPutSamplegetCacheElementRemovedSamplegetCacheElementUpdatedSamplegetCacheEvictionRategetCacheExpirationRategetCacheHitInMemorySamplegetCacheHitOffHeapSamplegetCacheHitOnDiskSamplegetCacheHitRategetCacheHitRatioSamplegetCacheHitSamplegetCacheInMemoryHitRategetCacheInMemoryMissRategetCacheMissExpiredSamplegetCacheMissInMemorySamplegetCacheMissNotFoundSamplegetCacheMissOffHeapSamplegetCacheMissOnDiskSamplegetCacheMissRategetCacheMissSamplegetCacheOffHeapHitRategetCacheOffHeapMissRategetCacheOnDiskHitRategetCacheOnDiskMissRategetCachePutRategetCacheRemoveRategetCacheSearchRategetCacheUpdateRategetCacheXaCommitsSamplegetCacheXaRollbacksSamplegetDiskExpiryThreadIntervalSecondsgetHasWriteBehindWritergetLocalDiskSizeInBytesSamplegetLocalDiskSizeSamplegetLocalHeapSizeInBytesSamplegetLocalHeapSizeSamplegetLocalOffHeapSizeInBytesSamplegetLocalOffHeapSizeSamplegetMaxBytesLocalDiskgetMaxBytesLocalDiskAsStringgetMaxBytesLocalHeapgetMaxBytesLocalHeapAsStringgetMaxBytesLocalOffHeapgetMaxBytesLocalOffHeapAsStringgetMaxElementsOnDiskgetMaxEntriesInCachegetMaxEntriesLocalDiskgetMaxEntriesLocalHeapgetMemoryStoreEvictionPolicygetMostRecentRejoinTimeStampMillisgetMostRecentRejoinTimestampMillisSamplegetNonStopFailureRategetNonStopFailureSamplegetNonStopRejoinTimeoutRategetNonStopRejoinTimeoutSamplegetNonStopSuccessRategetNonStopSuccessSamplegetNonStopTimeoutRategetNonStopTimeoutSamplegetPersistenceStrategygetPinnedToStoregetPutIfAbsentMissSamplegetPutIfAbsentSuccessSamplegetRemoteSizeSamplegetRemoveElementMissSamplegetRemoveElementSuccessSamplegetReplaceOneArgMissSamplegetReplaceOneArgSuccessSamplegetReplaceTwoArgMissSamplegetReplaceTwoArgSuccessSamplegetSearchablegetSearchAttributesgetSearchesPerSecondSamplegetSizeSamplegetStatusgetTerracottaConsistencygetTimeToIdleSecondsgetTimeToLiveSecondsgetTransactionalgetTransactionCommitRategetTransactionRollbackRategetWriterConcurrencygetWriterMaxQueueSizegetWriterQueueLengthgetWriterQueueLengthSampleisClusterBulkLoadEnabledisDiskPersistentisEnabledisEternalisLoggingEnabledisNodeBulkLoadEnabledisOverflowToDiskisOverflowToOffHeapisPinnedisTerracottaClusteredremoveAllsetDiskExpiryThreadIntervalSecondssetDiskPersistentsetEnabledsetEternalsetLoggingEnabledsetMaxBytesLocalDisksetMaxBytesLocalDiskAsStringsetMaxBytesLocalHeapsetMaxBytesLocalHeapAsStringsetMaxElementsOnDisksetMaxEntriesInCachesetMaxEntriesLocalDisksetMaxEntriesLocalHeapsetMemoryStoreEvictionPolicysetNodeBulkLoadEnabledsetOverflowToDisksetTimeToIdleSecondssetTimeToLiveSeconds

Field Detail

CACHE_CHANGEDback to summary
public static final String CACHE_CHANGED

CACHE_CHANGED

CACHE_CLEAREDback to summary
public static final String CACHE_CLEARED

CACHE_CLEARED

CACHE_ENABLEDback to summary
public static final String CACHE_ENABLED

CACHE_ENABLED

CACHE_FLUSHEDback to summary
public static final String CACHE_FLUSHED

CACHE_FLUSHED

CACHE_STATISTICS_ENABLEDback to summary
public static final String CACHE_STATISTICS_ENABLED

CACHE_STATISTICS_ENABLED

CACHE_STATISTICS_RESETback to summary
public static final String CACHE_STATISTICS_RESET

CACHE_STATISTICS_RESET

Method Detail

getMaxElementsInMemoryback to summary
public int getMaxElementsInMemory()

Deprecated

use getMaxEntriesLocalHeap() instead

Configuration property accessor

Returns:int

Max elements in memory config setting value

Annotations
@Deprecated
isClusterCoherentback to summary
public boolean isClusterCoherent()

Deprecated

use isClusterBulkLoadEnabled() instead

Is the cache coherent cluster-wide?

Annotations
@Deprecated
isNodeCoherentback to summary
public boolean isNodeCoherent()

Deprecated

use isNodeBulkLoadEnabled() instead

Is the cache coherent locally?

Annotations
@Deprecated
setMaxElementsInMemoryback to summary
public void setMaxElementsInMemory(int maxElements)

setMaxElementsInMemory

Annotations
@Deprecated
setNodeCoherentback to summary
public void setNodeCoherent(boolean coherent)

Deprecated

use setNodeBulkLoadEnabled(boolean) instead

Enabled/disable cache coherence mode for this node.

Annotations
@Deprecated