public class

RunningStartupState

extends StartupStateTemplate
implements JiraStartupState
java.lang.Object
   ↳ com.atlassian.jira.startup.StartupStateTemplate
     ↳ com.atlassian.jira.startup.RunningStartupState

Class Overview

JIRA has been bootstrapped and the plugin system has been started.

Summary

Public Constructors
RunningStartupState(BootstrappingStartupState bootstrapping, AtomicReference<JiraStartupState> currentState)
Public Methods
StartupCheck getFailedStartupCheck()
Returns the first startup check that failed, or null.
boolean isStartupChecksPassed()
Returns a boolean indicating if this startup state's startup checks have all passed.
void onJiraStopping()
This method is called when JIRA is being stopped.
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 startup check that failed.
Protected Methods
ImmutableList<StartupCheck> getStartupChecks()
Template method that returns an immutable list of startup checks to perform.
[Expand]
Inherited Methods
From class com.atlassian.jira.startup.StartupStateTemplate
From class java.lang.Object
From interface com.atlassian.jira.startup.JiraStartupState

Public Constructors

public RunningStartupState (BootstrappingStartupState bootstrapping, AtomicReference<JiraStartupState> currentState)

Public Methods

public StartupCheck getFailedStartupCheck ()

Returns the first startup check that failed, or null. Note that if the startup checks have not yet been run, this method returns null independently of whether the checks would actually fail at this point in time.

Returns
  • the first startup check that failed, or null

public boolean isStartupChecksPassed ()

Returns a boolean indicating if this startup state's startup checks have all passed. If the checks have not yet been run, they will be run the first time that this method is called.

Returns
  • a boolean indicating if this startup state's startup checks have all passed.

public void onJiraStopping ()

This method is called when JIRA is being stopped.

public void onPluginSystemRestarted ()

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

public void onPluginSystemStarted ()

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

public void onPluginSystemStopped ()

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

public void setFailedStartupCheck (StartupCheck startupCheck)

Sets the first startup check that failed.

Parameters
startupCheck a StartupCheck

Protected Methods

protected ImmutableList<StartupCheck> getStartupChecks ()

Template method that returns an immutable list of startup checks to perform.

Returns
  • an ImmutableList