IBM WebSphere Application ServerTM
Release 7

com.ibm.wsspi.cache
Class CacheStatisticsListener

java.lang.Object
  extended by com.ibm.wsspi.cache.CacheStatisticsListener

public class CacheStatisticsListener
extends java.lang.Object

This is the mechanism to provide cache statistics to the CacheMonitor.


Constructor Summary
CacheStatisticsListener(com.ibm.ws.cache.intf.CacheStatisticsListener csli)
           
 
Method Summary
 long getNumExplicitInvalidationsFromDisk()
          This method returns the total number of explicit invalidations resulting in the removal of entries from disk.
 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.
 long getNumGetValueHits()
          This method returns the total number of cache hits.
 long getNumGetValueMisses()
          This method returns the total number of cache misses.
 long getNumLruRemoves()
          This method returns the total number of cache removes a Least Recently Used (LRU) algorithm.
 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.
 long getNumRemoves()
          This method returns the total number of cache removes.
 long getNumTimeoutInvalidationsFromDisk()
          This method returns the total number of disk entries timeouts.
 void resetDisk()
          This method resets all the statistics for disk cache.
 void resetMemory()
          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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheStatisticsListener

public CacheStatisticsListener(com.ibm.ws.cache.intf.CacheStatisticsListener csli)
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)

IBM WebSphere Application ServerTM
Release 7