public class

ApplicationStatusServlet

extends HttpServlet
java.lang.Object
   ↳ javax.servlet.GenericServlet
     ↳ javax.servlet.http.HttpServlet
       ↳ com.atlassian.jira.servlet.ApplicationStatusServlet

Class Overview

Servlet that provides application status information.

Summary

Public Constructors
ApplicationStatusServlet()
Protected Methods
void doGet(HttpServletRequest req, HttpServletResponse resp)
ComponentManager.State getState()
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.
[Expand]
Inherited Methods
From class javax.servlet.http.HttpServlet
From class javax.servlet.GenericServlet
From class java.lang.Object
From interface javax.servlet.Servlet
From interface javax.servlet.ServletConfig

Public Constructors

public ApplicationStatusServlet ()

Protected Methods

protected void doGet (HttpServletRequest req, HttpServletResponse resp)

Throws
ServletException
IOException

protected ComponentManager.State getState ()

protected 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