org.objectweb.jonas.webapp.jonasadmin.monitoring
Class MemoryGraphServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
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 |
MemoryGraphServlet
public MemoryGraphServlet()
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 processingres
- 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