@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()
SynchronyProcessManager
getConfiguration
in interface SynchronyProcessManager
public String getSynchronyProperty(SynchronyEnv env)
SynchronyProcessManager
getSynchronyProperty
in interface SynchronyProcessManager
env
- the key that will be looked uppublic boolean isSynchronyStartingUp()
SynchronyProcessManager
isSynchronyStartingUp
in interface SynchronyProcessManager
public com.atlassian.util.concurrent.Promise<Boolean> startup()
SynchronyProcessManager
startup
in interface SynchronyProcessManager
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public boolean stop()
SynchronyProcessManager
stop
in interface SynchronyProcessManager
public com.atlassian.util.concurrent.Promise<Boolean> restart()
SynchronyProcessManager
SynchronyProcessManager.stop()
and then SynchronyProcessManager.startup()
.
However, this method waits for ExternalProcess.isAlive()
to return false
in between stopping and starting.restart
in interface SynchronyProcessManager
Copyright © 2003–2017 Atlassian. All rights reserved.