Package com.atlassian.jira.startup
Class JiraHomeStartupCheck
java.lang.Object
com.atlassian.jira.startup.JiraHomeStartupCheck
- All Implemented Interfaces:
FaultDescription
,StartupCheck
This StartupCheck will check that there is a valid jira.home configured that we can get an exclusive lock on.
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.
- Since:
- v4.0
-
Method Summary
Modifier and TypeMethodDescriptionNeeded to implement the StartupCheck interface.Needed to implement the StartupCheck interface These are not used anywhere anymore as the Startup checks are migrated to the Johnson page.static JiraHomeStartupCheck
io.atlassian.fugue.Either<JiraHomeStartupCheckFailure,
File> Runs the JIRA home checks and creation process.getName()
Implement this method to return the name of this check.boolean
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.toString()
-
Method Details
-
getInstance
-
getName
Description copied from interface:StartupCheck
Implement this method to return the name of this check.- Specified by:
getName
in interfaceStartupCheck
- Returns:
- name
-
isOk
public boolean isOk()When called the first time it runs the startup checks and the creation of the JIRA home directory. Returns if those checks and the creation were successful.- Specified by:
isOk
in interfaceStartupCheck
- Returns:
- true if all checks and JIRA home creation were successful.
-
isInitialised
public boolean isInitialised()- Returns:
- true if the start up checks have been run.
-
stop
public void stop()Releases the lock to the JIRA home directory.- Specified by:
stop
in interfaceStartupCheck
-
getJiraHomeDirectory
Runs the JIRA home checks and creation process. Returns the JIRA home File if everything is successful or the failure reason otherwise.- Returns:
- the JIRA home dir File or Check failure
-
toString
-
getFaultDescription
Needed to implement the StartupCheck interface. These are not used anywhere anymore as the Startup checks are migrated to the Johnson page.- Specified by:
getFaultDescription
in interfaceFaultDescription
- Returns:
- String containing the fault description
-
getHTMLFaultDescription
Needed to implement the StartupCheck interface These are not used anywhere anymore as the Startup checks are migrated to the Johnson page.- Specified by:
getHTMLFaultDescription
in interfaceStartupCheck
- Returns:
- HTML formatted fault description
-