com.arsdigita.web.monitoring
Class DBTestServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.arsdigita.web.monitoring.DBTestServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DBTestServlet
extends javax.servlet.http.HttpServlet

This page checks to make sure that the database is still working properly. If it is, the page contains the word "success". If it is not then it returned the word "failed". To use this, simply map it to a URL in one of your dispatchers. You can then point the correct keepalive script to point at the page and look at the output

Version:
$Revision: #6 $, $Date: 2004/04/07 $
Author:
Randy Graebner (randyg@alum.mit.edu)
See Also:
Serialized Form

Field Summary
static String versionId
           
 
Constructor Summary
DBTestServlet()
           
 
Method Summary
 void service(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sresp)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

DBTestServlet

public DBTestServlet()
Method Detail

service

public final void service(javax.servlet.http.HttpServletRequest sreq,
                          javax.servlet.http.HttpServletResponse sresp)
                   throws javax.servlet.ServletException,
                          IOException
Throws:
javax.servlet.ServletException
IOException


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC