public interface

JiraStartupState

com.atlassian.jira.startup.JiraStartupState
Known Indirect Subclasses

Class Overview

Interface for JIRA startup states. The startup state contains any startup checks that need to be performed when JIRA is in a given state.

Summary

Public Methods
StartupCheck getFailedStartupCheck()
Returns the first StartupCheck that failed, if any.
boolean isStartupChecksPassed()
Returns true if this JiraStartupState's prerequisites have been satisfied (i.e.
void onJiraStopping()
This method is called when JIRA is being stopped.
void onPluginSystemDelayed()
This method is called when the Atlassian Plugins system has completed earlyStartup within JIRA.
void onPluginSystemRestarted()
This method is called when the Atlassian Plugins system has been restarted within JIRA.
void onPluginSystemStarted()
This method is called when the Atlassian Plugins system has been started within JIRA.
void onPluginSystemStopped()
This method is called when the Atlassian Plugins system has been stopped within JIRA.
void setFailedStartupCheck(StartupCheck startupCheck)
Sets the first StartupCheck that failed.

Public Methods

public StartupCheck getFailedStartupCheck ()

Returns the first StartupCheck that failed, if any.

Returns
  • the first StartupCheck that failed, if any.

public boolean isStartupChecksPassed ()

Returns true if this JiraStartupState's prerequisites have been satisfied (i.e. JIRA is "good to go" in this state). In practice this means that JIRA is able to run in this startup state.

Implementations of this method should run any necessary validity/consistency checks the first time it is called, the result of which should be cached.

Returns
  • true if JIRA started correctly

public void onJiraStopping ()

This method is called when JIRA is being stopped.

Throws
IllegalStateException if this is not a valid event for this state

public void onPluginSystemDelayed ()

This method is called when the Atlassian Plugins system has completed earlyStartup within JIRA.

Throws
IllegalStateException if this is not a valid event for this state

public void onPluginSystemRestarted ()

This method is called when the Atlassian Plugins system has been restarted within JIRA.

Throws
IllegalStateException if this is not a valid event for this state

public void onPluginSystemStarted ()

This method is called when the Atlassian Plugins system has been started within JIRA.

Throws
IllegalStateException if this is not a valid event for this state

public void onPluginSystemStopped ()

This method is called when the Atlassian Plugins system has been stopped within JIRA.

Throws
IllegalStateException if this is not a valid event for this state

public void setFailedStartupCheck (StartupCheck startupCheck)

Sets the first StartupCheck that failed.

Parameters
startupCheck a StartupCheck