Methods Summary |
---|
public long | getElementCountInMemory()
return cache.getElementCountInMemory();
|
public long | getElementCountOnDisk()
return cache.getElementCountOnDisk();
|
public java.util.Map | getEntries()
Map map = new HashMap();
Iterator iter = cache.toMap().entrySet().iterator();
while ( iter.hasNext() ) {
Map.Entry me = (Map.Entry) iter.next();
map.put( ( (CacheKey) me.getKey() ).getKey(), me.getValue() );
}
return map;
|
public long | getHitCount()
return hitCount;
|
public long | getMissCount()
return missCount;
|
public long | getPutCount()
return putCount;
|
public long | getSizeInMemory()
return cache.getSizeInMemory();
|
public java.lang.String | toString()
StringBuffer buf = new StringBuffer()
.append("SecondLevelCacheStatistics")
.append("[hitCount=").append(this.hitCount)
.append(",missCount=").append(this.missCount)
.append(",putCount=").append(this.putCount);
//not sure if this would ever be null but wanted to be careful
if (this.cache != null) {
buf.append(",elementCountInMemory=").append(this.getElementCountInMemory())
.append(",elementCountOnDisk=").append(this.getElementCountOnDisk())
.append(",sizeInMemory=").append(this.getSizeInMemory());
}
buf.append(']");
return buf.toString();
|