Class LoadServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.jboss.modcluster.demo.servlet.LoadServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
- Direct Known Subclasses:
ActiveSessionsLoadServlet,BusyConnectorsLoadServlet,HeapMemoryLoadServlet,ReceiveTrafficLoadServlet,RecordServlet,RequestCountLoadServlet,SendTrafficLoadServlet,SystemLoadServlet
public class LoadServlet extends javax.servlet.http.HttpServlet- Author:
- Paul Ferraro
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCOUNTprotected static StringDEFAULT_DURATIONprotected static StringDURATIONstatic StringJVM_ROUTE_SYSTEM_PROPERTY
-
Constructor Summary
Constructors Constructor Description LoadServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URIcreateLocalURI(javax.servlet.http.HttpServletRequest request, Map<String,String> parameterMap)protected URIcreateServerURI(javax.servlet.http.HttpServletRequest request, Map<String,String> parameterMap)protected StringgetInitParameter(String name, String defaultValue)protected StringgetJvmRoute()protected StringgetParameter(javax.servlet.http.HttpServletRequest request, String name, String defaultValue)voidinit()protected voidwriteLocalName(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
DURATION
protected static final String DURATION
- See Also:
- Constant Field Values
-
DEFAULT_DURATION
protected static final String DEFAULT_DURATION
- See Also:
- Constant Field Values
-
COUNT
protected static final String COUNT
- See Also:
- Constant Field Values
-
JVM_ROUTE_SYSTEM_PROPERTY
public static final String JVM_ROUTE_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
getJvmRoute
protected String getJvmRoute()
-
createServerURI
protected URI createServerURI(javax.servlet.http.HttpServletRequest request, Map<String,String> parameterMap)
-
createLocalURI
protected URI createLocalURI(javax.servlet.http.HttpServletRequest request, Map<String,String> parameterMap)
-
getParameter
protected String getParameter(javax.servlet.http.HttpServletRequest request, String name, String defaultValue)
-
writeLocalName
protected void writeLocalName(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException- Throws:
IOException
-
-