@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public class DefaultSafeModeManager extends Object implements SafeModeManager
SafeModeManager
NB: The safe mode applies only in single node environment! The end application (e.g. JIRA) must implement
ClusterEnvironmentProvider to trigger the safe mode manager logicSTART_ALL_PLUGINS| Constructor and Description |
|---|
DefaultSafeModeManager(PluginMetadataManager pluginMetadataManager,
ClusterEnvironmentProvider clusterEnvironmentProvider,
SafeModeCommandLineArgumentsFactory safeModeCommandLineArgumentsFactory,
PluginPersistentStateStore pluginPersistentStateStore) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isInSafeMode() |
boolean |
pluginShouldBeStarted(Plugin plugin,
Iterable<ModuleDescriptor> descriptors)
This checks if a plugin should be started when safe-mode is on
|
public DefaultSafeModeManager(PluginMetadataManager pluginMetadataManager, ClusterEnvironmentProvider clusterEnvironmentProvider, SafeModeCommandLineArgumentsFactory safeModeCommandLineArgumentsFactory, PluginPersistentStateStore pluginPersistentStateStore)
public boolean pluginShouldBeStarted(Plugin plugin, Iterable<ModuleDescriptor> descriptors)
SafeModeManagerpluginShouldBeStarted in interface SafeModeManagerplugin - to be checked if it should be starteddescriptors - list of module descriptors to find the plugin references that must be started in safe mode
(this is kinda tricky way to do such search, but the only available at the startup phase)public boolean isInSafeMode()
isInSafeMode in interface SafeModeManagerCopyright © 2018 Atlassian. All rights reserved.