org.mmbase.servlet
Class Performance

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.mmbase.servlet.MMBaseServlet
              extended by org.mmbase.servlet.BridgeServlet
                  extended by org.mmbase.servlet.Performance
All Implemented Interfaces:
Serializable, Servlet, ServletConfig, MMBaseStarter

public class Performance
extends BridgeServlet

Performance Servlet is used as a basic Servlet to test whether the installation of succeeded. It also does a very basic test to measure how fast the JVM is.

Version:
$Id: Performance.java 34900 2009-05-01 16:29:42Z michiel $
Author:
vpro
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mmbase.servlet.BridgeServlet
BridgeServlet.QueryParts
 
Field Summary
static long INT_LOOP
           
static long METHOD_LOOP
           
static long STRING_LOOP
           
static String TEST_STRING
           
 
Fields inherited from class org.mmbase.servlet.BridgeServlet
FILE_PATTERN, MESSAGE_ATTRIBUTE
 
Fields inherited from class org.mmbase.servlet.MMBaseServlet
mmbase, retryAfter
 
Constructor Summary
Performance()
           
 
Method Summary
 void doGet(HttpServletRequest req, HttpServletResponse res)
          Called by the server when a request is done.
 String getServletInfo()
          Info method, provides the user/server with some basic info on this Servlet
 void init()
          Inits lastmodifiedField.
protected  void stub()
           
 
Methods inherited from class org.mmbase.servlet.BridgeServlet
desperatelyGetNode, findCloud, getAnonymousCloud, getClassCloud, getCloud, getCloudName, getLastModified, getNode, getServedNode, readQuery, readQuery, readQueryFromRequestURI, readServletPath
 
Methods inherited from class org.mmbase.servlet.MMBaseServlet
associateMapping, checkInited, decRefCount, destroy, getAssociations, getBasePath, getMMBase, getRequestURL, getServletByAssociation, getServletByMapping, getServletMappings, getServletMappingsByAssociation, incRefCount, service, setInitException, setMMBase
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INT_LOOP

public static final long INT_LOOP
See Also:
Constant Field Values

STRING_LOOP

public static final long STRING_LOOP
See Also:
Constant Field Values

METHOD_LOOP

public static final long METHOD_LOOP
See Also:
Constant Field Values

TEST_STRING

public static final String TEST_STRING
See Also:
Constant Field Values
Constructor Detail

Performance

public Performance()
Method Detail

init

public void init()
          throws ServletException
Description copied from class: BridgeServlet
Inits lastmodifiedField. The init of an MMBaseServlet checks if MMBase is running. It not then it is started.

Overrides:
init in class BridgeServlet
Throws:
ServletException
Javadoc:

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse res)
           throws ServletException,
                  IOException
Called by the server when a request is done.

Overrides:
doGet in class MMBaseServlet
Throws:
ServletException
IOException
Javadoc:

stub

protected void stub()
Javadoc:

getServletInfo

public String getServletInfo()
Info method, provides the user/server with some basic info on this Servlet

Specified by:
getServletInfo in interface Servlet
Overrides:
getServletInfo in class MMBaseServlet
Returns:
a descriptive text


MMBase 2.0-SNAPSHOT - null