com.atlassian.jira.servlet
Class ApplicationStatusServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.atlassian.jira.servlet.ApplicationStatusServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ApplicationStatusServlet
extends javax.servlet.http.HttpServlet

Servlet that provides application status information. This servlet should *not* be managed through Spring, because it also needs to be functional if the Spring application context fails to start up.

See Also:
Serialized Form

Constructor Summary
ApplicationStatusServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 boolean hasErrors()
          We go through all the johnson events and see if we find any ERROR or FATAL message.
 boolean isUserCacheInitialized()
          We want to know if the cache of users is initialized so users can login, if this cache is not populated is useless to tell the load balancer we are ready There are certain phases of initialization that Pico could tell me that everything is good and the ComponentAccessor not returning me the proper reference.
 
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 Detail

ApplicationStatusServlet

public ApplicationStatusServlet()
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

hasErrors

public boolean hasErrors()
We go through all the johnson events and see if we find any ERROR or FATAL message.

Returns:
true if the server is reporting errors, false if not

isUserCacheInitialized

public boolean isUserCacheInitialized()
We want to know if the cache of users is initialized so users can login, if this cache is not populated is useless to tell the load balancer we are ready There are certain phases of initialization that Pico could tell me that everything is good and the ComponentAccessor not returning me the proper reference. That is why we need to try/catch to avoid any weird exception sent to the load balancer

Returns:
true if the cache is populated, false if not


Copyright © 2002-2014 Atlassian. All Rights Reserved.