com.atlassian.jira.startup
Class JiraStartupChecklist

java.lang.Object
  extended by com.atlassian.jira.startup.JiraStartupChecklist

public class JiraStartupChecklist
extends java.lang.Object

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.

Since:
v4.0

Constructor Summary
JiraStartupChecklist()
           
 
Method Summary
static StartupCheck getFailedStartupCheck()
          Returns the StartupCheck that failed, if any.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraStartupChecklist

public JiraStartupChecklist()
Method Detail

startupOK

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.

getFailedStartupCheck

public static StartupCheck getFailedStartupCheck()
Returns the StartupCheck that failed, if any.

Returns:
the StartupCheck that failed, if any.

setFailedStartupCheck

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 ConsistencyLauncher, after the pre-startup checks have passed, but an error is thrown during the actual startup.

Parameters:
startupCheck - The StartupCheck


Copyright © 2002-2011 Atlassian. All Rights Reserved.