@Component(value="synchronyProcessManager") public class DefaultSynchronyProcessManager extends Object implements SynchronyProcessManager, org.springframework.beans.factory.DisposableBean
SynchronyProcessManager.ExternalProcessState| Modifier and Type | Field and Description |
|---|---|
static String |
DARK_FEATURE_COLLABORATIVE_EDITING_FRICTIONLESS_UPGRADE |
| Constructor and Description |
|---|
DefaultSynchronyProcessManager(BootstrapManager bootstrapManager,
SystemInformationService systemInformationService,
ExternalProcessBuilderFactory externalProcessBuilderFactory,
NonIdlingExternalProcessFactory nonIdlingExternalProcessFactory,
com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager synchronyConfigurationManager,
SynchronyMonitor synchronyMonitor,
com.atlassian.confluence.plugins.synchrony.bootstrap.SynchronyExecutorServiceProvider executorServiceProvider,
ClusterManager clusterManager,
SynchronyProxyMonitor synchronyProxyMonitor,
com.atlassian.event.api.EventPublisher eventPublisher,
DownloadResourceManager downloadResourceManager,
DarkFeaturesManager darkFeaturesManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Map<String,String> |
getConfiguration()
Returns a map containing various configuration information.
|
List<String> |
getSynchronyArguments(File synchronyArgsFile) |
String |
getSynchronyProperty(SynchronyEnv env)
Returns the configured environment value for the provided key.
|
boolean |
isSynchronyStartingUp()
Determines if the Synchrony that Confluence uses to connect to is in the process of starting up.
|
com.atlassian.util.concurrent.Promise<Boolean> |
restart()
Shuts down and then starts up the Synchrony process.
|
com.atlassian.util.concurrent.Promise<Boolean> |
startup()
Starts the Synchrony process and returns a Promise
|
boolean |
stop()
Terminates the Synchrony process.
|
public static final String DARK_FEATURE_COLLABORATIVE_EDITING_FRICTIONLESS_UPGRADE
@Autowired public DefaultSynchronyProcessManager(BootstrapManager bootstrapManager, SystemInformationService systemInformationService, ExternalProcessBuilderFactory externalProcessBuilderFactory, NonIdlingExternalProcessFactory nonIdlingExternalProcessFactory, com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager synchronyConfigurationManager, SynchronyMonitor synchronyMonitor, com.atlassian.confluence.plugins.synchrony.bootstrap.SynchronyExecutorServiceProvider executorServiceProvider, ClusterManager clusterManager, SynchronyProxyMonitor synchronyProxyMonitor, com.atlassian.event.api.EventPublisher eventPublisher, DownloadResourceManager downloadResourceManager, DarkFeaturesManager darkFeaturesManager)
public Map<String,String> getConfiguration()
SynchronyProcessManagergetConfiguration in interface SynchronyProcessManagerpublic String getSynchronyProperty(SynchronyEnv env)
SynchronyProcessManagergetSynchronyProperty in interface SynchronyProcessManagerenv - the key that will be looked uppublic boolean isSynchronyStartingUp()
SynchronyProcessManagerisSynchronyStartingUp in interface SynchronyProcessManagerpublic com.atlassian.util.concurrent.Promise<Boolean> startup()
SynchronyProcessManagerstartup in interface SynchronyProcessManagerpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic boolean stop()
SynchronyProcessManagerstop in interface SynchronyProcessManagerpublic com.atlassian.util.concurrent.Promise<Boolean> restart()
SynchronyProcessManagerSynchronyProcessManager.stop() and then SynchronyProcessManager.startup().
However, this method waits for ExternalProcess.isAlive() to return false
in between stopping and starting.restart in interface SynchronyProcessManagerCopyright © 2003–2017 Atlassian. All rights reserved.