com.googlecode.objectify.impl
Class EntityMemcacheStats

java.lang.Object
  extended by com.googlecode.objectify.impl.EntityMemcacheStats
All Implemented Interfaces:
MemcacheStats

public class EntityMemcacheStats
extends java.lang.Object
implements MemcacheStats

Tracks hit/miss statistics for the memcache.


Nested Class Summary
 class EntityMemcacheStats.Stat
           
 
Constructor Summary
EntityMemcacheStats()
           
 
Method Summary
 java.util.concurrent.ConcurrentHashMap<java.lang.String,EntityMemcacheStats.Stat> getStats()
          Get the live statistics.
 void recordHit(com.google.appengine.api.datastore.Key key)
           
 void recordMiss(com.google.appengine.api.datastore.Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityMemcacheStats

public EntityMemcacheStats()
Method Detail

getStats

public java.util.concurrent.ConcurrentHashMap<java.lang.String,EntityMemcacheStats.Stat> getStats()
Get the live statistics. You can clear it if you want.

Returns:
the live map, but you can iterate through it just fine

recordHit

public void recordHit(com.google.appengine.api.datastore.Key key)
Specified by:
recordHit in interface MemcacheStats

recordMiss

public void recordMiss(com.google.appengine.api.datastore.Key key)
Specified by:
recordMiss in interface MemcacheStats


Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1