Package com.composum.nodes.debugutil
Class MemoryHogServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- com.composum.nodes.debugutil.MemoryHogServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class MemoryHogServlet extends org.apache.sling.api.servlets.SlingSafeMethodsServlet
Allocates and frees 1 gigabyte of memory. Caution when enabling this. ;-)- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MemoryHogServlet.Configuration
-
Field Summary
Fields Modifier and Type Field Description protected MemoryHogServlet.Configuration
config
-
Constructor Summary
Constructors Constructor Description MemoryHogServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(MemoryHogServlet.Configuration config)
protected void
deactivate()
protected void
doGet(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response)
-
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, service
-
-
-
-
Field Detail
-
config
protected MemoryHogServlet.Configuration config
-
-
Method Detail
-
doGet
protected void doGet(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
doGet
in classorg.apache.sling.api.servlets.SlingSafeMethodsServlet
- Throws:
javax.servlet.ServletException
IOException
-
activate
protected void activate(MemoryHogServlet.Configuration config)
-
deactivate
protected void deactivate()
-
-