org.mmbase.servlet
Class performance

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.mmbase.servlet.MMBaseServlet
                    |
                    +--org.mmbase.servlet.BridgeServlet
                          |
                          +--org.mmbase.servlet.performance
All Implemented Interfaces:
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.10 2002/06/28 08:38:05 pierre Exp $
Author:
vpro
See Also:
Serialized Form

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
getCloud, getCloudName, getLastModified, getNode, readQuery
 
Methods inherited from class org.mmbase.servlet.MMBaseServlet
associateMapping, decRefCount, destroy, getAssociations, getRequestURL, getServletByAssociation, getServletByMapping, getServletMappings, getServletMappingsByAssociation, incRefCount, service
 
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

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

stub

protected void stub()

getServletInfo

public java.lang.String getServletInfo()
Info method, provides the user/server with some basic info on this Servlet
Overrides:
getServletInfo in class MMBaseServlet
Returns:
a descriptive text


MMBase build 1.6.5.20030923