com.ibm.wsspi.cache

Class CacheStatisticsListener

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.cache.CacheStatisticsListener

  1. public class CacheStatisticsListener
  2. extends java.lang.Object
This is the mechanism to provide cache statistics to the CacheMonitor.

Constructor Summary

Constructor and Description
CacheStatisticsListener(com.ibm.ws.cache.intf.CacheStatisticsListener csli)

Method Summary

Modifier and Type Method and Description
  1. long
getNumExplicitInvalidationsFromDisk()
This method returns the total number of explicit invalidations resulting in the removal of entries from disk.
  1. 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.
  1. long
getNumGetValueHits()
This method returns the total number of cache hits.
  1. long
getNumGetValueMisses()
This method returns the total number of cache misses.
  1. long
getNumLruRemoves()
This method returns the total number of cache removes a Least Recently Used (LRU) algorithm.
  1. 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.
  1. long
getNumRemoves()
This method returns the total number of cache removes.
  1. long
getNumTimeoutInvalidationsFromDisk()
This method returns the total number of disk entries timeouts.
  1. void
resetDisk()
This method resets all the statistics for disk cache.
  1. void
resetMemory()
This method resets all the statistics for memory cache.
  1. void
setNumGetValueHits(long numGetValueHits)
  1. void
setNumGetValueMisses(long numGetValueMisses)
  1. void
setNumLruRemoves(long numLruRemoves)
  1. void
setNumRemoves(long numRemoves)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CacheStatisticsListener

  1. public CacheStatisticsListener( com.ibm.ws.cache.intf.CacheStatisticsListener csli)

Method Detail

resetMemory

  1. public final void resetMemory()
This method resets all the statistics for memory cache.

resetDisk

  1. public final void resetDisk()
This method resets all the statistics for disk cache.

getNumGetValueHits

  1. public long getNumGetValueHits( )
This method returns the total number of cache hits.
Returns:
The total number of cache hits.

getNumGetValueMisses

  1. public long getNumGetValueMisses( )
This method returns the total number of cache misses.
Returns:
The total number of cache misses.

getNumLruRemoves

  1. 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

  1. public long getNumRemoves()
This method returns the total number of cache removes.
Returns:
The total number of cache removes.

getNumGarbageCollectorInvalidationsFromDisk

  1. 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

  1. 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

  1. public long getNumTimeoutInvalidationsFromDisk( )
This method returns the total number of disk entries timeouts.
Returns:
The total number of disk entries timeouts.

getNumOverflowInvalidationsFromDisk

  1. 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

  1. public void setNumGetValueHits( long numGetValueHits)

setNumGetValueMisses

  1. public void setNumGetValueMisses( long numGetValueMisses)

setNumLruRemoves

  1. public void setNumLruRemoves(long numLruRemoves)

setNumRemoves

  1. public void setNumRemoves(long numRemoves)