Top Methods
net.sf.ehcache.management

public Interface CacheStatisticsMBean

Known Direct Implementers
net.sf.ehcache.management.CacheStatistics

Author
Greg Luck
Since
1.3
Version
$Id: CacheStatisticsMBean.java 10789 2018-04-26 02:08:13Z adahanne $

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the Ehcache, or null is there no associated cache
getAssociatedCacheName
()

public double

Returns:

the percentage of successful hits
getCacheHitPercentage
()

Returns the percentage of cache accesses that found a requested item in the cache.

public long

Returns:

the number of times a requested item was found in the cache
getCacheHits
()

The number of times a requested item was found in the cache.

public long

Returns:

the number of times a requested element was not found in the cache
getCacheMisses
()

public double

Returns:

the percentage of accesses that failed to find anything
getCacheMissPercentage
()

Returns the percentage of cache accesses that did not find a requested element in the cache.

public long

Returns:

the DiskStore size which is always a count unadjusted for duplicates or expiries
getDiskStoreObjectCount
()

Gets the number of objects in the DiskStore

public double

Returns:

the percentage of successful hits from the MemoryStore
getInMemoryHitPercentage
()

Returns the percentage of cache accesses that found a requested item cached in-memory.

public long

Returns:

the number of times a requested item was found in memory
getInMemoryHits
()

Number of times a requested item was found in the Memory Store.

public long

Returns:

the number of times a requested element was not found in the memory cache
getInMemoryMisses
()

public long

Returns:

the MemoryStore size which is always a count unadjusted for duplicates or expiries
getMemoryStoreObjectCount
()

Gets the number of objects in the MemoryStore

public long

Returns:

the number of elements in the ehcache, with a varying degree of accuracy, depending on accuracy setting.
getObjectCount
()

public double

Returns:

the percentage of successful hits from the OffHeapStore
getOffHeapHitPercentage
()

Returns the percentage of cache accesses that found a requested item cached off-heap.

public long

Returns:

the number of times a requested item was found off-heap, or 0 if there is no BigMemory storage configured.
getOffHeapHits
()

Number of times a requested item was found in the off-heap store.

public long

Returns:

the number of times a requested element was not found in the off-heap cache
getOffHeapMisses
()

public long

Returns:

the OffHeapStore size which is always a count unadjusted for duplicates or expiries
getOffHeapStoreObjectCount
()

Gets the number of objects in the OffHeapStore

public double

Returns:

the percentage of successful hits from the DiskStore.
getOnDiskHitPercentage
()

Returns the percentage of cache accesses that found a requested item cached on disk.

public long

Returns:

the number of times a requested item was found on Disk, or 0 if there is no disk storage configured.
getOnDiskHits
()

Number of times a requested item was found in the Disk Store.

public long

Returns:

the number of times a requested element was not found in the disk cache
getOnDiskMisses
()

public int

Returns:

Maximum elements waiting to be processed by the write behind writer. -1 if no write-behind
getWriterMaxQueueSize
()

Gets the maximum size of the write-behind queue, if any.

public long

Returns:

Elements waiting to be processed by the write behind writer. -1 if no write-behind
getWriterQueueLength
()

Gets the size of the write-behind queue, if any.

Method Detail

getAssociatedCacheNameback to summary
public String getAssociatedCacheName()
Returns:String

the name of the Ehcache, or null is there no associated cache

getCacheHitPercentageback to summary
public double getCacheHitPercentage()

Returns the percentage of cache accesses that found a requested item in the cache.

Returns:double

the percentage of successful hits

getCacheHitsback to summary
public long getCacheHits()

The number of times a requested item was found in the cache.

Returns:long

the number of times a requested item was found in the cache

getCacheMissesback to summary
public long getCacheMisses()
Returns:long

the number of times a requested element was not found in the cache

getCacheMissPercentageback to summary
public double getCacheMissPercentage()

Returns the percentage of cache accesses that did not find a requested element in the cache.

Returns:double

the percentage of accesses that failed to find anything

getDiskStoreObjectCountback to summary
public long getDiskStoreObjectCount()

Gets the number of objects in the DiskStore

Returns:long

the DiskStore size which is always a count unadjusted for duplicates or expiries

getInMemoryHitPercentageback to summary
public double getInMemoryHitPercentage()

Returns the percentage of cache accesses that found a requested item cached in-memory.

Returns:double

the percentage of successful hits from the MemoryStore

getInMemoryHitsback to summary
public long getInMemoryHits()

Number of times a requested item was found in the Memory Store.

Returns:long

the number of times a requested item was found in memory

getInMemoryMissesback to summary
public long getInMemoryMisses()
Returns:long

the number of times a requested element was not found in the memory cache

getMemoryStoreObjectCountback to summary
public long getMemoryStoreObjectCount()

Gets the number of objects in the MemoryStore

Returns:long

the MemoryStore size which is always a count unadjusted for duplicates or expiries

getObjectCountback to summary
public long getObjectCount()
Returns:long

the number of elements in the ehcache, with a varying degree of accuracy, depending on accuracy setting.

getOffHeapHitPercentageback to summary
public double getOffHeapHitPercentage()

Returns the percentage of cache accesses that found a requested item cached off-heap.

Returns:double

the percentage of successful hits from the OffHeapStore

getOffHeapHitsback to summary
public long getOffHeapHits()

Number of times a requested item was found in the off-heap store.

Returns:long

the number of times a requested item was found off-heap, or 0 if there is no BigMemory storage configured.

getOffHeapMissesback to summary
public long getOffHeapMisses()
Returns:long

the number of times a requested element was not found in the off-heap cache

getOffHeapStoreObjectCountback to summary
public long getOffHeapStoreObjectCount()

Gets the number of objects in the OffHeapStore

Returns:long

the OffHeapStore size which is always a count unadjusted for duplicates or expiries

getOnDiskHitPercentageback to summary
public double getOnDiskHitPercentage()

Returns the percentage of cache accesses that found a requested item cached on disk.

Returns:double

the percentage of successful hits from the DiskStore.

getOnDiskHitsback to summary
public long getOnDiskHits()

Number of times a requested item was found in the Disk Store.

Returns:long

the number of times a requested item was found on Disk, or 0 if there is no disk storage configured.

getOnDiskMissesback to summary
public long getOnDiskMisses()
Returns:long

the number of times a requested element was not found in the disk cache

getWriterMaxQueueSizeback to summary
public int getWriterMaxQueueSize()

Gets the maximum size of the write-behind queue, if any.

Returns:int

Maximum elements waiting to be processed by the write behind writer. -1 if no write-behind

getWriterQueueLengthback to summary
public long getWriterQueueLength()

Gets the size of the write-behind queue, if any. The value is for all local buckets

Returns:long

Elements waiting to be processed by the write behind writer. -1 if no write-behind