Package com.atlassian.jira.startup.mode
Interface StartupModeReference
- All Known Implementing Classes:
DefaultStartupModeReference
@ParametersAreNonnullByDefault
public interface StartupModeReference
Allows setting (once) and reading of the
StartupMode.
This component is only ever available from the full Pico container, because
its initialise() method requires the database to be available.- Since:
- 7.4
-
Method Summary
Modifier and TypeMethodDescriptionget()Returns the startup mode.voidSets the startup mode based on the current instance state.default booleanIndicates whether JIRA started in upgrade mode (even if the upgrade is now complete).
-
Method Details
-
initialise
void initialise()Sets the startup mode based on the current instance state.- Throws:
IllegalStateException- if the mode has already been set
-
get
Returns the startup mode.- Returns:
- see above
- Throws:
IllegalStateException- if the mode has not yet been set
-
isUpgrading
default boolean isUpgrading()Indicates whether JIRA started in upgrade mode (even if the upgrade is now complete).- Returns:
- see above
-