org.mmbase.servlet
Class performance

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.mmbase.servlet.MMBaseServlet
              extended byorg.mmbase.servlet.BridgeServlet
                  extended byorg.mmbase.servlet.performance
All Implemented Interfaces:
org.mmbase.servlet.MMBaseStarter, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

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,v 1.11 2003/03/10 11:50:41 pierre Exp $
Author:
vpro
See Also:
Serialized Form
Warning: Will be renamed to:
Performance

Field Summary
static long INT_LOOP
           
static long METHOD_LOOP
           
static long STRING_LOOP
           
static java.lang.String TEST_STRING
           
 
Fields inherited from class org.mmbase.servlet.MMBaseServlet
mmbase
 
Constructor Summary
performance()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Called by the server when a request is done.
 java.lang.String getServletInfo()
          Info method, provides the user/server with some basic info on this Servlet
 void init()
          The init of an MMBaseServlet checks if MMBase is running.
protected  void stub()
           
 
Methods inherited from class org.mmbase.servlet.BridgeServlet
getAnonymousCloud, getCloud, getCloudName, getLastModified, getNode, readQuery
 
Methods inherited from class org.mmbase.servlet.MMBaseServlet
associateMapping, decRefCount, destroy, getAssociations, 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 long INT_LOOP

STRING_LOOP

public static long STRING_LOOP

METHOD_LOOP

public static long METHOD_LOOP

TEST_STRING

public static java.lang.String TEST_STRING
Constructor Detail

performance

public performance()
Method Detail

init

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

Overrides:
init in class BridgeServlet
Throws:
javax.servlet.ServletException
Warning: No Java Documentation Available.

doGet

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

Overrides:
doGet in class MMBaseServlet
Throws:
javax.servlet.ServletException
java.io.IOException
Warning: No Java Documentation Available.

stub

protected void stub()
Warning: No Java Documentation Available.

getServletInfo

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

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


MMBase build 1.7.1.20041002