public class RemoteCacheStartupServlet extends HttpServlet
servlet>
<servlet-name>JCSRemoteCacheStartupServlet</servlet-name>
<servlet-class>
org.apache.commons.jcs.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, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public RemoteCacheStartupServlet()
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 GenericServlet
ServletException
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
service
in class HttpServlet
request
- response
- ServletException
IOException
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.