public class

JiraStartupChecklist

extends Object
java.lang.Object
   ↳ com.atlassian.jira.startup.JiraStartupChecklist

Class Overview

This class asserts that JIRA can start normally.

Currently the checks include a number of database consistency checks, and checks that we have a valid jira.home.

Summary

Public Constructors
JiraStartupChecklist()
Public Methods
static StartupCheck getFailedStartupCheck()
Returns the StartupCheck that failed, if any.
synchronized static JiraStartupChecklist getInstance()
static void setFailedStartupCheck(StartupCheck startupCheck)
Allows an external operation to declare that the startup failed, and give the message to be displayed in JIRA's "JIRA is locked" web page.
static boolean startupOK()
Returns true if JIRA started correctly.
static void stop()
Called when JIRA is stopping and hence any startup check resources can be cleaned up
Protected Methods
JiraStartupState startupState()
Returns the current startup state.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public JiraStartupChecklist ()

Public Methods

public static StartupCheck getFailedStartupCheck ()

Returns the StartupCheck that failed, if any.

Returns
  • the StartupCheck that failed, if any.

public static synchronized JiraStartupChecklist getInstance ()

public static void setFailedStartupCheck (StartupCheck startupCheck)

Allows an external operation to declare that the startup failed, and give the message to be displayed in JIRA's "JIRA is locked" web page.

This is used in ComponentContainerLauncher, after the pre-startup checks have passed, but an error is thrown during the actual startup.

Parameters
startupCheck The StartupCheck

public static boolean startupOK ()

Returns true if JIRA started correctly. The first time this is called, it runs the checks, and then caches the result.

Returns
  • true if JIRA started correctly.

public static void stop ()

Called when JIRA is stopping and hence any startup check resources can be cleaned up

Protected Methods

protected JiraStartupState startupState ()

Returns the current startup state.

Returns
  • a JiraStartupState