com.atlassian.jira.startup
Class SystemPluginsEnabledStartupCheck

java.lang.Object
  extended by com.atlassian.jira.startup.SystemPluginsEnabledStartupCheck
All Implemented Interfaces:
StartupCheck

public class SystemPluginsEnabledStartupCheck
extends Object
implements StartupCheck

Checks that all system plugins have been enabled.

Since:
4.3.1

Constructor Summary
SystemPluginsEnabledStartupCheck()
          Creates a new SystemPluginsEnabledStartupCheck.
 
Method Summary
protected  com.google.common.collect.ImmutableList<com.atlassian.jira.startup.SystemPluginsEnabledStartupCheck.PluginInfo> calculateDisabledSystemPlugins()
          Returns a list containing the system (i.e.
 String getFaultDescription()
          Implement this method to return the description of the fault.
 String getHTMLFaultDescription()
          Implement this method to return the error message of the fault.
 String getName()
          Implement this method to return the name of this check
 boolean isOk()
          Returns true if all system plugins were enabled at the time that this check was first performed.
 void stop()
          Called when the tenant / instance is coming down
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemPluginsEnabledStartupCheck

public SystemPluginsEnabledStartupCheck()
Creates a new SystemPluginsEnabledStartupCheck.

Method Detail

isOk

public boolean isOk()
Returns true if all system plugins were enabled at the time that this check was first performed.

Specified by:
isOk in interface StartupCheck
Returns:
a boolean indicating if all system plugins are enabled

getName

public String getName()
Description copied from interface: StartupCheck
Implement this method to return the name of this check

Specified by:
getName in interface StartupCheck
Returns:
name

getFaultDescription

public String getFaultDescription()
Description copied from interface: StartupCheck
Implement this method to return the description of the fault. This method should return null in the case the check was positive. This message is used to present the user with a message to the console

Specified by:
getFaultDescription in interface StartupCheck
Returns:
fault description

getHTMLFaultDescription

public String getHTMLFaultDescription()
Description copied from interface: StartupCheck
Implement this method to return the error message of the fault. This method should return null in the case the check was positive. This message is used to present the user with a message viewable in a web browser.

Specified by:
getHTMLFaultDescription in interface StartupCheck
Returns:
HTML formatted fault description

stop

public void stop()
Description copied from interface: StartupCheck
Called when the tenant / instance is coming down

Specified by:
stop in interface StartupCheck

calculateDisabledSystemPlugins

protected com.google.common.collect.ImmutableList<com.atlassian.jira.startup.SystemPluginsEnabledStartupCheck.PluginInfo> calculateDisabledSystemPlugins()
Returns a list containing the system (i.e. non-optional) plugins that are not currently enabled.

Returns:
an ImmutableList of PluginInfo


Copyright © 2002-2012 Atlassian. All Rights Reserved.