com.ibm.wsspi.cache

Interface CacheStatistics


  1. public interface CacheStatistics
This interface is used to monitor the cache. It is utilized by the WebSphere Cache Monitor application shipped as a part of the WAS install image to administer and monitor the contents of the CoreCache
Since:
WAS7.0

Method Summary

Modifier and Type Method and Description
  1. long
getCacheHitsCount()
Statistics name: CacheHits
  1. long
getCacheLruRemovesCount()
Statistics name: CacheLruRemoves
  1. long
getCacheMissesCount()
Statistics name: CacheMisses
  1. long
getCacheRemovesCount()
Statistics name: CacheRemoves
  1. long
getExplicitInvalidationsFromMemoryCount()
Statistics name: ExplicitInvalidationsFromMemory
  1. java.util.Map<java.lang.String,java.lang.Number>
getExtendedStats()
Extended cache statistics specific to the cache provider
  1. long
getMemoryCacheEntriesCount()
Statistics name: MemoryCacheEntries
  1. float
getMemoryCacheSizeInMBCount()
Statistics name: MemoryCacheSizeInMB
  1. long
getTimeoutInvalidationsFromMemoryCount()
Statistics name: TimeoutInvalidationsFromMemory
  1. void
reset()
This is used to reset all statistics counters in the cache proivder excluding: MemoryCacheEntries MemoryCacheSizeInMB

Method Detail

getCacheHitsCount

  1. long getCacheHitsCount()
Statistics name: CacheHits

Description: The total number of cache hits.

Returns:
The total number of cache hits.

getCacheLruRemovesCount

  1. long getCacheLruRemovesCount()
Statistics name: CacheLruRemoves

Description: The number of memory-based least recently used (LRU) evictions. These correspond to the number of objects that are evicted from the memory cache, based on the LRU policy.

Returns:
The number of objects that are removed by LRU evictions

getCacheMissesCount

  1. long getCacheMissesCount()
Statistics name: CacheMisses

Description: The total number of cache misses.

Returns:
The total number of cache misses.

getCacheRemovesCount

  1. long getCacheRemovesCount()
Statistics name: CacheRemoves

Description: The total number of cache removes.

Returns:
The total number of cache removes.

getExplicitInvalidationsFromMemoryCount

  1. long getExplicitInvalidationsFromMemoryCount( )
Statistics name: ExplicitInvalidationsFromMemory

Description: Metric that captures the number of explicit invalidations that result in an entry being removed from memory.

Returns:
The total number of explicitly triggered invalidations from memory.

getExtendedStats

  1. java.util.Map<java.lang.String,java.lang.Number> getExtendedStats( )
Extended cache statistics specific to the cache provider
Returns:
Map of {cache statistic name --> Cache statistic value}

getMemoryCacheEntriesCount

  1. long getMemoryCacheEntriesCount( )
Statistics name: MemoryCacheEntries

Description: The number of cache entries in memory.

Returns:
The number of cache entries in memory.

getMemoryCacheSizeInMBCount

  1. float getMemoryCacheSizeInMBCount( )
Statistics name: MemoryCacheSizeInMB

Description: The size of the cache in terms of memory occupied on the JVM heap.

Returns:
The amount of JVM heap in MB occupied by the cache

getTimeoutInvalidationsFromMemoryCount

  1. long getTimeoutInvalidationsFromMemoryCount( )
Statistics name: TimeoutInvalidationsFromMemory

Description: Metric that captures the number of timeout invalidations that result in an entry being removed from memory.

Returns:
The total number of timeout invalidations from memory.

reset

  1. void reset()
This is used to reset all statistics counters in the cache proivder excluding:
  1. MemoryCacheEntries
  2. MemoryCacheSizeInMB