Package com.ibm.wsspi.cache
Interface CacheStatistics
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 TypeMethodDescriptionlong
Statistics name: CacheHitslong
Statistics name: CacheLruRemoveslong
Statistics name: CacheMisseslong
Statistics name: CacheRemoveslong
Statistics name: ExplicitInvalidationsFromMemoryExtended cache statistics specific to the cache providerlong
Statistics name: MemoryCacheEntriesfloat
Statistics name: MemoryCacheSizeInMBlong
Statistics name: TimeoutInvalidationsFromMemoryvoid
reset()
This is used to reset all statistics counters in the cache proivder excluding: MemoryCacheEntries MemoryCacheSizeInMB
-
Method Details
-
getCacheHitsCount
long getCacheHitsCount()Statistics name: CacheHitsDescription: The total number of cache hits.
- Returns:
- The total number of cache hits.
-
getCacheLruRemovesCount
long 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
-
getCacheMissesCount
long getCacheMissesCount()Statistics name: CacheMissesDescription: The total number of cache misses.
- Returns:
- The total number of cache misses.
-
getCacheRemovesCount
long getCacheRemovesCount()Statistics name: CacheRemovesDescription: The total number of cache removes.
- Returns:
- The total number of cache removes.
-
getExplicitInvalidationsFromMemoryCount
long 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.
-
getExtendedStats
Extended cache statistics specific to the cache provider- Returns:
Map
of {cache statistic name --> Cache statistic value}
-
getMemoryCacheEntriesCount
long getMemoryCacheEntriesCount()Statistics name: MemoryCacheEntriesDescription: The number of cache entries in memory.
- Returns:
- The number of cache entries in memory.
-
getMemoryCacheSizeInMBCount
float 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
-
getTimeoutInvalidationsFromMemoryCount
long 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.
-
reset
void reset()This is used to reset all statistics counters in the cache proivder excluding:- MemoryCacheEntries
- MemoryCacheSizeInMB
-