com.atlassian.jira.startup
Class RunningStartupState

java.lang.Object
  extended by com.atlassian.jira.startup.StartupStateTemplate
      extended by com.atlassian.jira.startup.RunningStartupState
All Implemented Interfaces:
JiraStartupState

public class RunningStartupState
extends StartupStateTemplate
implements JiraStartupState

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


Constructor Summary
RunningStartupState(BootstrappingStartupState bootstrapping, AtomicReference<JiraStartupState> currentState)
           
 
Method Summary
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunningStartupState

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

isStartupChecksPassed

public boolean isStartupChecksPassed()
Description copied from class: StartupStateTemplate
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.

Specified by:
isStartupChecksPassed in interface JiraStartupState
Overrides:
isStartupChecksPassed in class StartupStateTemplate
Returns:
a boolean indicating if this startup state's startup checks have all passed.

onPluginSystemStarted

public void onPluginSystemStarted()
                           throws IllegalStateException
Description copied from interface: JiraStartupState
This method is called when the Atlassian Plugins system has been started within JIRA.

Specified by:
onPluginSystemStarted in interface JiraStartupState
Throws:
IllegalStateException - if this is not a valid event for this state

getFailedStartupCheck

public StartupCheck getFailedStartupCheck()
Description copied from class: StartupStateTemplate
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.

Specified by:
getFailedStartupCheck in interface JiraStartupState
Overrides:
getFailedStartupCheck in class StartupStateTemplate
Returns:
the first startup check that failed, or null

setFailedStartupCheck

public void setFailedStartupCheck(StartupCheck startupCheck)
Description copied from class: StartupStateTemplate
Sets the first startup check that failed.

Specified by:
setFailedStartupCheck in interface JiraStartupState
Overrides:
setFailedStartupCheck in class StartupStateTemplate
Parameters:
startupCheck - a StartupCheck

onPluginSystemStopped

public void onPluginSystemStopped()
Description copied from interface: JiraStartupState
This method is called when the Atlassian Plugins system has been stopped within JIRA.

Specified by:
onPluginSystemStopped in interface JiraStartupState

onPluginSystemRestarted

public void onPluginSystemRestarted()
Description copied from interface: JiraStartupState
This method is called when the Atlassian Plugins system has been restarted within JIRA.

Specified by:
onPluginSystemRestarted in interface JiraStartupState

onJiraStopping

public void onJiraStopping()
Description copied from interface: JiraStartupState
This method is called when JIRA is being stopped.

Specified by:
onJiraStopping in interface JiraStartupState

getStartupChecks

protected com.google.common.collect.ImmutableList<StartupCheck> getStartupChecks()
Description copied from class: StartupStateTemplate
Template method that returns an immutable list of startup checks to perform.

Specified by:
getStartupChecks in class StartupStateTemplate
Returns:
an ImmutableList


Copyright © 2002-2012 Atlassian. All Rights Reserved.