org.objectweb.jonas.webapp.jonasadmin.monitoring
Class MemoryGraphServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.objectweb.jonas.webapp.jonasadmin.monitoring.MemoryGraphServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class MemoryGraphServlet
extends javax.servlet.http.HttpServlet

Author:
Adriana Danes
Contributor Michel-Ange Anton
See Also:
Serialized Form

Constructor Summary
MemoryGraphServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Respond to a GET request for the content produced by this servlet.
static int getHeight()
           
static int getWidth(int length)
           
 
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

MemoryGraphServlet

public MemoryGraphServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws java.io.IOException,
                  javax.servlet.ServletException
Respond to a GET request for the content produced by this servlet.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - The servlet request we are processing
res - The servlet response we are producing
Throws:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs

getWidth

public static int getWidth(int length)
Parameters:
length - the data array size (data.length)
Returns:
the picture width when displaying an array of the specified size

getHeight

public static int getHeight()
Returns:
the picture height