com.atlassian.jira.startup
Class JiraStartupChecklist

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

public class JiraStartupChecklist
extends 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 void destroyTenant(com.atlassian.multitenant.Tenant tenant)
           
static StartupCheck getFailedStartupCheck()
          Returns the StartupCheck that failed, if any.
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.
protected  JiraStartupState startupState()
          Returns the current startup state.
static void stop()
          Called when a tenant is stopping and hence any startup check resources can be cleaned up
 
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

getInstance

public static JiraStartupChecklist getInstance()

destroyTenant

public static void destroyTenant(com.atlassian.multitenant.Tenant tenant)

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

Parameters:
startupCheck - The StartupCheck

stop

public static void stop()
Called when a tenant is stopping and hence any startup check resources can be cleaned up


startupState

protected JiraStartupState startupState()
Returns the current startup state.

Returns:
a JiraStartupState


Copyright © 2002-2012 Atlassian. All Rights Reserved.