public class JiraStartupChecklist extends Object
Currently the checks include a number of database consistency checks, and checks that we have a valid jira.home.
Constructor and Description |
---|
JiraStartupChecklist() |
Modifier and Type | Method and Description |
---|---|
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 JIRA is stopping and hence any startup check resources can be cleaned up
|
public static JiraStartupChecklist getInstance()
public static boolean startupOK()
public static StartupCheck getFailedStartupCheck()
public static void setFailedStartupCheck(StartupCheck startupCheck)
This is used in ComponentContainerLauncher, after the pre-startup checks have passed, but an error is thrown during the actual startup.
startupCheck
- The StartupCheckpublic static void stop()
protected JiraStartupState startupState()
Copyright © 2002-2015 Atlassian. All Rights Reserved.