@ThreadSafe public abstract class

StartupStateTemplate

extends Object
implements JiraStartupState
java.lang.Object
   ↳ com.atlassian.jira.startup.StartupStateTemplate
Known Direct Subclasses

Class Overview

Template class for JiraStartupState implementations. This class takes care of running and storing the results of all startup checks (just override getStartupChecks().

Summary

Public Constructors
StartupStateTemplate()
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 setFailedStartupCheck(StartupCheck failedStartupCheck)
Sets the first startup check that failed.
Protected Methods
abstract ImmutableList<StartupCheck> getStartupChecks()
Template method that returns an immutable list of startup checks to perform.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.startup.JiraStartupState

Public Constructors

public StartupStateTemplate ()

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 setFailedStartupCheck (StartupCheck failedStartupCheck)

Sets the first startup check that failed.

Parameters
failedStartupCheck a StartupCheck

Protected Methods

protected abstract ImmutableList<StartupCheck> getStartupChecks ()

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

Returns
  • an ImmutableList