Package com.ibm.wsspi.cache
Interface CacheStatistics
- 
 public interface CacheStatisticsThis 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 theCoreCache- Since:
- WAS7.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCacheHitsCount()Statistics name: CacheHitslonggetCacheLruRemovesCount()Statistics name: CacheLruRemoveslonggetCacheMissesCount()Statistics name: CacheMisseslonggetCacheRemovesCount()Statistics name: CacheRemoveslonggetExplicitInvalidationsFromMemoryCount()Statistics name: ExplicitInvalidationsFromMemoryjava.util.Map<java.lang.String,java.lang.Number>getExtendedStats()Extended cache statistics specific to the cache providerlonggetMemoryCacheEntriesCount()Statistics name: MemoryCacheEntriesfloatgetMemoryCacheSizeInMBCount()Statistics name: MemoryCacheSizeInMBlonggetTimeoutInvalidationsFromMemoryCount()Statistics name: TimeoutInvalidationsFromMemoryvoidreset()This is used to reset all statistics counters in the cache proivder excluding: MemoryCacheEntries MemoryCacheSizeInMB
 
- 
- 
- 
Method Detail- 
getCacheHitsCountlong getCacheHitsCount() Statistics name: CacheHitsDescription: The total number of cache hits. - Returns:
- The total number of cache hits.
 
 - 
getCacheLruRemovesCountlong getCacheLruRemovesCount() Statistics name: CacheLruRemovesDescription: 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
 
 - 
getCacheMissesCountlong getCacheMissesCount() Statistics name: CacheMissesDescription: The total number of cache misses. - Returns:
- The total number of cache misses.
 
 - 
getCacheRemovesCountlong getCacheRemovesCount() Statistics name: CacheRemovesDescription: The total number of cache removes. - Returns:
- The total number of cache removes.
 
 - 
getExplicitInvalidationsFromMemoryCountlong getExplicitInvalidationsFromMemoryCount() Statistics name: ExplicitInvalidationsFromMemoryDescription: 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.
 
 - 
getExtendedStatsjava.util.Map<java.lang.String,java.lang.Number> getExtendedStats() Extended cache statistics specific to the cache provider- Returns:
- Mapof {cache statistic name --> Cache statistic value}
 
 - 
getMemoryCacheEntriesCountlong getMemoryCacheEntriesCount() Statistics name: MemoryCacheEntriesDescription: The number of cache entries in memory. - Returns:
- The number of cache entries in memory.
 
 - 
getMemoryCacheSizeInMBCountfloat getMemoryCacheSizeInMBCount() Statistics name: MemoryCacheSizeInMBDescription: 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
 
 - 
getTimeoutInvalidationsFromMemoryCountlong getTimeoutInvalidationsFromMemoryCount() Statistics name: TimeoutInvalidationsFromMemoryDescription: 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.
 
 - 
resetvoid reset() This is used to reset all statistics counters in the cache proivder excluding:- MemoryCacheEntries
- MemoryCacheSizeInMB
 
 
- 
 
-