|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.jcs.auxiliary.remote.server.RemoteCacheStartupServlet
public class RemoteCacheStartupServlet
This servlet can be used to startup the JCS remote cache. It is easy to deploy the remote server in a tomcat base. This give you an easy way to monitor its activity.
| Constructor Summary | |
|---|---|
RemoteCacheStartupServlet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
shuts the cache down. |
void |
init()
Starts the registry and then tries to bind to it. |
protected void |
service(HttpServletRequest request,
HttpServletResponse response)
It just dumps the stats. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteCacheStartupServlet()
| Method Detail |
|---|
public void init()
throws ServletException
Gets the port from a props file. Uses the local host name for the registry host. Tries to start the registry, ignoring failure. Starts the server.
init in class GenericServletServletException
protected void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
service in class HttpServletrequest - response -
ServletException
IOExceptionpublic void destroy()
destroy in interface Servletdestroy in class GenericServlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||