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 Type
    Method
    Description
    get()
    Returns the startup mode.
    void
    Sets the startup mode based on the current instance state.
    default boolean
    Indicates 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

      @Nonnull StartupMode 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