public class DelayedStartupState extends StartupStateTemplate implements JiraStartupState
Constructor and Description |
---|
DelayedStartupState(BootstrappingStartupState bootstrapping,
AtomicReference<JiraStartupState> currentState) |
Modifier and Type | Method and Description |
---|---|
StartupCheck |
getFailedStartupCheck()
Returns the first startup check that failed, or null.
|
protected com.google.common.collect.ImmutableList<StartupCheck> |
getStartupChecks()
Template method that returns an immutable list of startup checks to perform.
|
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 |
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 startup check that failed.
|
public DelayedStartupState(BootstrappingStartupState bootstrapping, AtomicReference<JiraStartupState> currentState)
public boolean isStartupChecksPassed()
StartupStateTemplate
isStartupChecksPassed
in interface JiraStartupState
isStartupChecksPassed
in class StartupStateTemplate
public void onPluginSystemStarted() throws IllegalStateException
JiraStartupState
onPluginSystemStarted
in interface JiraStartupState
IllegalStateException
- if this is not a valid event for this statepublic void onPluginSystemDelayed() throws IllegalStateException
JiraStartupState
onPluginSystemDelayed
in interface JiraStartupState
IllegalStateException
- if this is not a valid event for this statepublic StartupCheck getFailedStartupCheck()
StartupStateTemplate
getFailedStartupCheck
in interface JiraStartupState
getFailedStartupCheck
in class StartupStateTemplate
public void setFailedStartupCheck(StartupCheck startupCheck)
StartupStateTemplate
setFailedStartupCheck
in interface JiraStartupState
setFailedStartupCheck
in class StartupStateTemplate
startupCheck
- a StartupCheckpublic void onPluginSystemStopped()
JiraStartupState
onPluginSystemStopped
in interface JiraStartupState
public void onPluginSystemRestarted()
JiraStartupState
onPluginSystemRestarted
in interface JiraStartupState
public void onJiraStopping()
JiraStartupState
onJiraStopping
in interface JiraStartupState
protected com.google.common.collect.ImmutableList<StartupCheck> getStartupChecks()
StartupStateTemplate
getStartupChecks
in class StartupStateTemplate
Copyright © 2002-2015 Atlassian. All Rights Reserved.