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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allowedToViewStatus
(javax.servlet.http.HttpServletRequest request) if allowed to view statusvoid
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 startingstatic javax.servlet.http.HttpServletRequest
get a reference to the request objectstatic void
writeToScreen
(javax.servlet.http.HttpServletResponse response, String toWrite) write a message to screenMethods 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
-
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 classjavax.servlet.http.HttpServlet
- See Also:
-
HttpServlet.doGet(HttpServletRequest, HttpServletResponse)
-
writeToScreen
write a message to screen- Parameters:
response
-toWrite
-
-
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
-