com.googlecode.objectify.util
Class MemcacheStatsServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.googlecode.objectify.util.MemcacheStatsServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class MemcacheStatsServlet
extends javax.servlet.http.HttpServlet

If you are using the ObjectifyService static factory, you can mount this servlet to see the memcache stats for an instance. This is nothing fancy, but it should give you an idea of what's going on.

Author:
Jeff Schnitzer
See Also:
Serialized Form

Constructor Summary
MemcacheStatsServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
protected  EntityMemcacheStats getMemcacheStats()
          If you aren't using ObjectifyService, you can extend the servlet and override this method.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemcacheStatsServlet

public MemcacheStatsServlet()
Method Detail

getMemcacheStats

protected EntityMemcacheStats getMemcacheStats()
If you aren't using ObjectifyService, you can extend the servlet and override this method.


doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException


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