org.ow2.jonas.webapp.jonasadmin.monitoring
Class MemoryGraphServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.ow2.jonas.webapp.jonasadmin.monitoring.MemoryGraphServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class MemoryGraphServlet
- extends HttpServlet
- Author:
- Adriana Danes
Contributor Michel-Ange Anton
- See Also:
- Serialized Form
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(HttpServletRequest req,
HttpServletResponse res)
throws IOException,
ServletException
- Respond to a GET request for the content produced by
this servlet.
- Overrides:
doGet
in class HttpServlet
- Parameters:
req
- The servlet request we are processingres
- The servlet response we are producing
- Throws:
IOException
- if an input/output error occurs
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
Copyright © 2010 OW2 Consortium. All Rights Reserved.