Class GrouperStatusServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
edu.internet2.middleware.grouper.j2ee.status.GrouperStatusServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class GrouperStatusServlet extends javax.servlet.http.HttpServlet
status servlet to see if grouper is ok (e.g. the DB and the loader jobs, etc)
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    allowedToViewStatus(javax.servlet.http.HttpServletRequest request)
    if allowed to view status
    void
    doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    static String
    put this string to be appended after each step: (14ms elapsed)
    static void
    call this from each servlet (except diagnostics)
    static void
    register that we are starting
    static javax.servlet.http.HttpServletRequest
    get a reference to the request object
    static void
    writeToScreen(javax.servlet.http.HttpServletResponse response, String toWrite)
    write a message to screen

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, 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
  • Constructor Details

    • GrouperStatusServlet

      public GrouperStatusServlet()
  • Method Details

    • retrieveRequest

      public static javax.servlet.http.HttpServletRequest retrieveRequest()
      get a reference to the request object
      Returns:
      the request
    • incrementNumberOfRequest

      public static void incrementNumberOfRequest()
      call this from each servlet (except diagnostics)
    • registerStartup

      public static void registerStartup()
      register that we are starting
    • doGet

      public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      See Also:
      • HttpServlet.doGet(HttpServletRequest, HttpServletResponse)
    • writeToScreen

      public static void writeToScreen(javax.servlet.http.HttpServletResponse response, String toWrite)
      write a message to screen
      Parameters:
      response -
      toWrite -
    • elapsedSuffix

      public static String elapsedSuffix()
      put this string to be appended after each step: (14ms elapsed)
      Returns:
      the string
    • allowedToViewStatus

      public boolean allowedToViewStatus(javax.servlet.http.HttpServletRequest request)
      if allowed to view status
      Returns:
      true if allowed to view status