|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.startup.StartupStateTemplate
@ThreadSafe public abstract class StartupStateTemplate
Template class for JiraStartupState implementations. This class takes care of running and storing the results of all
startup checks (just override getStartupChecks()
.
Constructor Summary | |
---|---|
StartupStateTemplate()
|
Method Summary | |
---|---|
StartupCheck |
getFailedStartupCheck()
Returns the first startup check that failed, or null. |
protected abstract 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 |
setFailedStartupCheck(StartupCheck failedStartupCheck)
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 |
Methods inherited from interface com.atlassian.jira.startup.JiraStartupState |
---|
onJiraStopping, onPluginSystemRestarted, onPluginSystemStarted, onPluginSystemStopped |
Constructor Detail |
---|
public StartupStateTemplate()
Method Detail |
---|
public boolean isStartupChecksPassed()
isStartupChecksPassed
in interface JiraStartupState
public StartupCheck getFailedStartupCheck()
getFailedStartupCheck
in interface JiraStartupState
public void setFailedStartupCheck(StartupCheck failedStartupCheck)
setFailedStartupCheck
in interface JiraStartupState
failedStartupCheck
- a StartupCheckprotected abstract com.google.common.collect.ImmutableList<StartupCheck> getStartupChecks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |