Package com.ibm.wsspi.cache
Class CacheStatisticsListener
java.lang.Object
com.ibm.wsspi.cache.CacheStatisticsListener
This is the mechanism to provide cache
statistics to the CacheMonitor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
This method returns the total number of explicit invalidations resulting in the removal of entries from disk.long
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.long
This method returns the total number of cache hits.long
This method returns the total number of cache misses.long
This method returns the total number of cache removes a Least Recently Used (LRU) algorithm.long
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.long
This method returns the total number of cache removes.long
This method returns the total number of disk entries timeouts.final void
This method resets all the statistics for disk cache.final void
This method resets all the statistics for memory cache.void
setNumGetValueHits
(long numGetValueHits) void
setNumGetValueMisses
(long numGetValueMisses) void
setNumLruRemoves
(long numLruRemoves) void
setNumRemoves
(long numRemoves)
-
Constructor Details
-
CacheStatisticsListener
public CacheStatisticsListener(com.ibm.ws.cache.intf.CacheStatisticsListener csli)
-
-
Method Details
-
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)
-