com.ibm.wsspi.cache
Class CacheStatisticsListener
- java.lang.Object
com.ibm.wsspi.cache.CacheStatisticsListener
- public class CacheStatisticsListener
- extends java.lang.Object
Constructor Summary
Constructor and Description |
---|
CacheStatisticsListener(com.ibm.ws.cache.intf.CacheStatisticsListener csli)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getNumExplicitInvalidationsFromDisk()
This method returns the total number of explicit invalidations resulting in the removal of entries from disk.
|
|
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.
|
|
getNumGetValueHits()
This method returns the total number of cache hits.
|
|
getNumGetValueMisses()
This method returns the total number of cache misses.
|
|
getNumLruRemoves()
This method returns the total number of cache removes a Least Recently Used (LRU) algorithm.
|
|
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.
|
|
getNumRemoves()
This method returns the total number of cache removes.
|
|
getNumTimeoutInvalidationsFromDisk()
This method returns the total number of disk entries timeouts.
|
|
resetDisk()
This method resets all the statistics for disk cache.
|
|
resetMemory()
This method resets all the statistics for memory cache.
|
|
setNumGetValueHits(long numGetValueHits)
|
|
setNumGetValueMisses(long numGetValueMisses)
|
|
setNumLruRemoves(long numLruRemoves)
|
|
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)