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 Summary
Constructors Constructor Description CacheStatisticsListener(com.ibm.ws.cache.intf.CacheStatisticsListener csli)
-
Method Summary
All 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
-
resetMemory
public final void resetMemory()
This method resets all the statistics for memory cache.
-
resetDisk
public final void resetDisk()
This method resets all the statistics for disk cache.
-
getNumGetValueHits
public long getNumGetValueHits()
This method returns the total number of cache hits.- Returns:
- The total number of cache hits.
-
getNumGetValueMisses
public long getNumGetValueMisses()
This method returns the total number of cache misses.- Returns:
- The total number of cache misses.
-
getNumLruRemoves
public 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.
-
getNumRemoves
public long getNumRemoves()
This method returns the total number of cache removes.- Returns:
- The total number of cache removes.
-
getNumGarbageCollectorInvalidationsFromDisk
public 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.
-
getNumExplicitInvalidationsFromDisk
public 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.
-
getNumTimeoutInvalidationsFromDisk
public long getNumTimeoutInvalidationsFromDisk()
This method returns the total number of disk entries timeouts.- Returns:
- The total number of disk entries timeouts.
-
getNumOverflowInvalidationsFromDisk
public 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.
-
setNumGetValueHits
public void setNumGetValueHits(long numGetValueHits)
-
setNumGetValueMisses
public void setNumGetValueMisses(long numGetValueMisses)
-
setNumLruRemoves
public void setNumLruRemoves(long numLruRemoves)
-
setNumRemoves
public void setNumRemoves(long numRemoves)
-
-