public class JiraHomeStartupCheck extends Object implements StartupCheck
Note: this has the side effect that the jira.home directory is created, if required, and "locked". These side-effects are REQUIRED in order to return valid results.
| Modifier and Type | Method and Description |
|---|---|
String |
getFaultDescription()
Needed to implement the StartupCheck interface.
|
String |
getHTMLFaultDescription()
Needed to implement the StartupCheck interface
These are not used anywhere anymore as the Startup checks are migrated to the Johnson page.
|
static JiraHomeStartupCheck |
getInstance() |
io.atlassian.fugue.Either<JiraHomeStartupCheckFailure,File> |
getJiraHomeDirectory()
Runs the JIRA home checks and creation process.
|
String |
getName()
Implement this method to return the name of this check.
|
boolean |
isInitialised() |
boolean |
isOk()
When called the first time it runs the startup checks and the creation of the JIRA home directory.
|
void |
stop()
Releases the lock to the JIRA home directory.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromStringpublic static JiraHomeStartupCheck getInstance()
public String getName()
StartupCheckgetName in interface StartupCheckpublic boolean isOk()
isOk in interface StartupCheckpublic boolean isInitialised()
public void stop()
stop in interface StartupCheckpublic io.atlassian.fugue.Either<JiraHomeStartupCheckFailure,File> getJiraHomeDirectory()
@Nullable public String getFaultDescription()
getFaultDescription in interface FaultDescription@Nullable public String getHTMLFaultDescription()
getHTMLFaultDescription in interface StartupCheckCopyright © 2002-2022 Atlassian. All Rights Reserved.