public class RemoteCacheStartupServlet extends HttpServlet
servlet>
<servlet-name>JCSRemoteCacheStartupServlet</servlet-name>
<servlet-class>
org.apache.commons.jcs3.auxiliary.remote.server.RemoteCacheStartupServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>JCSRemoteCacheStartupServlet</servlet-name>
<url-pattern>/jcs</url-pattern>
</servlet-mapping>
| Constructor and Description |
|---|
RemoteCacheStartupServlet() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logpublic 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 GenericServletServletExceptionprotected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
service in class HttpServletrequest - response - ServletExceptionIOExceptionpublic void destroy()
destroy in interface Servletdestroy in class GenericServletCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.