Package com.iplanet.am.sdk.common
Class CacheStats
- java.lang.Object
-
- com.iplanet.am.sdk.common.CacheStats
-
- All Implemented Interfaces:
StatsListener
public class CacheStats extends Object implements StatsListener
-
-
Constructor Summary
Constructors Constructor Description CacheStats(String instanceName, Debug debugObject)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CacheStats
createInstance(String instanceName, Debug debugObject)
Creates a new CacheStats object, adds the object as a listener to the Stats class and returns the object.protected int
getIntervalCount()
String
getName()
void
incrementRequestCount(int sizeOfCache)
void
printStats()
This method will be invoked when the stats time interval elapsed.void
updateHitCount(int sizeOfCache)
-
-
-
Method Detail
-
createInstance
public static CacheStats createInstance(String instanceName, Debug debugObject)
Creates a new CacheStats object, adds the object as a listener to the Stats class and returns the object.- Parameters:
instanceName
- name associated with the CacheStats instance.debugObject
- the debug instance to which the CacheStats object will be associated.- Returns:
- a CacheStats object
-
getName
public String getName()
-
updateHitCount
public void updateHitCount(int sizeOfCache)
-
incrementRequestCount
public void incrementRequestCount(int sizeOfCache)
-
getIntervalCount
protected int getIntervalCount()
-
printStats
public void printStats()
Description copied from interface:StatsListener
This method will be invoked when the stats time interval elapsed.- Specified by:
printStats
in interfaceStatsListener
-
-