| java.lang.Object com.jcorporate.expresso.core.dbobj.CacheStatEntry
CacheStatEntry | public class CacheStatEntry extends Object implements Comparable(Code) | | Cache Statistic Entry. Used by the DBObject system for tracking cache
hit statistics
version: 1.0 |
CacheStatEntry | public CacheStatEntry(String newName, String newDBName)(Code) | | Creates new CacheStatEntry
Parameters: newName - the new dbobject name Parameters: newDBName - the data context for the name |
compareTo | public int compareTo(Object o)(Code) | | Compares this object with the specified object for order.
order by hit rate, hits/misses
Parameters: o - the Object to be compared. a negative integer, zero, or a positive integer as this objectis less than, equal to, or greater than the specified object. throws: ClassCastException - if the specified object's type prevents itfrom being compared to this Object. |
getCacheHits | public int getCacheHits()(Code) | | Retrieve the number of cache hits
integer |
getCacheMisses | public int getCacheMisses()(Code) | | Retrieve the number of cache misses
integer |
getDBObjName | public String getDBObjName()(Code) | | Retrieve the classname of the DBObject for this
cache stat
java.lang.String |
getDataContext | public String getDataContext()(Code) | | Retrieve the data context of the stat entry
java.lang.String |
getReadCount | public int getReadCount()(Code) | | Retrieve the overall read count for dbobjects
integer |
incCounts | public synchronized void incCounts(boolean cached)(Code) | | Increment the counts for the particular class name. Increments
the read count and either the cache hit or cache miss
Parameters: cached - true if we got a cache hit, false if we got a cachemiss |
|
|