Package com.ibm.wsspi.cache
Class CacheStatisticsListener
- java.lang.Object
- 
- com.ibm.wsspi.cache.CacheStatisticsListener
 
- 
 public class CacheStatisticsListener extends java.lang.ObjectThis is the mechanism to provide cache statistics to the CacheMonitor.
- 
- 
Constructor SummaryConstructors Constructor Description CacheStatisticsListener(com.ibm.ws.cache.intf.CacheStatisticsListener csli)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetNumExplicitInvalidationsFromDisk()This method returns the total number of explicit invalidations resulting in the removal of entries from disk.longgetNumGarbageCollectorInvalidationsFromDisk()This method returns the total number of garbage collector invalidations resulting in the removal of entries from disk cache due to high threshold has been reached.longgetNumGetValueHits()This method returns the total number of cache hits.longgetNumGetValueMisses()This method returns the total number of cache misses.longgetNumLruRemoves()This method returns the total number of cache removes a Least Recently Used (LRU) algorithm.longgetNumOverflowInvalidationsFromDisk()This method returns the total number of invalidations resulting in the removal of entries from disk due to exceeding the disk cache size or disk cache size in GB limit.longgetNumRemoves()This method returns the total number of cache removes.longgetNumTimeoutInvalidationsFromDisk()This method returns the total number of disk entries timeouts.voidresetDisk()This method resets all the statistics for disk cache.voidresetMemory()This method resets all the statistics for memory cache.voidsetNumGetValueHits(long numGetValueHits)voidsetNumGetValueMisses(long numGetValueMisses)voidsetNumLruRemoves(long numLruRemoves)voidsetNumRemoves(long numRemoves)
 
- 
- 
- 
Method Detail- 
resetMemorypublic final void resetMemory() This method resets all the statistics for memory cache.
 - 
resetDiskpublic final void resetDisk() This method resets all the statistics for disk cache.
 - 
getNumGetValueHitspublic long getNumGetValueHits() This method returns the total number of cache hits.- Returns:
- The total number of cache hits.
 
 - 
getNumGetValueMissespublic long getNumGetValueMisses() This method returns the total number of cache misses.- Returns:
- The total number of cache misses.
 
 - 
getNumLruRemovespublic long getNumLruRemoves() This method returns the total number of cache removes a Least Recently Used (LRU) algorithm.- Returns:
- The total number of cache removes by LRU algorithm.
 
 - 
getNumRemovespublic long getNumRemoves() This method returns the total number of cache removes.- Returns:
- The total number of cache removes.
 
 - 
getNumGarbageCollectorInvalidationsFromDiskpublic long getNumGarbageCollectorInvalidationsFromDisk() This method returns the total number of garbage collector invalidations resulting in the removal of entries from disk cache due to high threshold has been reached.- Returns:
- The total number of garbage collector invalidations.
 
 - 
getNumExplicitInvalidationsFromDiskpublic long getNumExplicitInvalidationsFromDisk() This method returns the total number of explicit invalidations resulting in the removal of entries from disk.- Returns:
- The total number of explicit invalidations.
 
 - 
getNumTimeoutInvalidationsFromDiskpublic long getNumTimeoutInvalidationsFromDisk() This method returns the total number of disk entries timeouts.- Returns:
- The total number of disk entries timeouts.
 
 - 
getNumOverflowInvalidationsFromDiskpublic long getNumOverflowInvalidationsFromDisk() This method returns the total number of invalidations resulting in the removal of entries from disk due to exceeding the disk cache size or disk cache size in GB limit.- Returns:
- The total number of invalidations caused by disk overflow.
 
 - 
setNumGetValueHitspublic void setNumGetValueHits(long numGetValueHits) 
 - 
setNumGetValueMissespublic void setNumGetValueMisses(long numGetValueMisses) 
 - 
setNumLruRemovespublic void setNumLruRemoves(long numLruRemoves) 
 - 
setNumRemovespublic void setNumRemoves(long numRemoves) 
 
- 
 
-