public interface SynchronyProcessManager
Modifier and Type | Interface and Description |
---|---|
static class |
SynchronyProcessManager.ExternalProcessState |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getConfiguration()
Returns a map containing various configuration information.
|
String |
getSynchronyProperty(SynchronyEnv env)
Returns the configured environment value for the provided key.
|
boolean |
isSynchronyClusterManuallyManaged()
Returns
true if external Synchrony cluster is used, and false if Confluence manages
Synchrony cluster on its own. |
boolean |
isSynchronyOff()
Returns
true if synchrony is switched off (for example, by admin), and false
otherwise. |
default boolean |
isSynchronyStartingUp()
Determines if the Synchrony that Confluence uses to connect to is in the process of starting up.
|
io.atlassian.util.concurrent.Promise<Boolean> |
restart()
Shuts down and then starts up the Synchrony process.
|
void |
setSynchronyOff(boolean off)
Sets flag to the database, which indicates if synchrony should run as external process, and represents results
of the admin actions.
|
io.atlassian.util.concurrent.Promise<Boolean> |
startup()
Starts the Synchrony process and returns a Promise
|
boolean |
stop()
Terminates the Synchrony process.
|
boolean isSynchronyClusterManuallyManaged()
true
if external Synchrony cluster is used, and false
if Confluence manages
Synchrony cluster on its own.
External Synchrony cluster can run only for Confluence DC, when synchrony.service.url
environmental variable is set.true
if external Synchrony cluster is used, and false
if Confluence manage
Synchrony cluster on its own.boolean isSynchronyOff()
true
if synchrony is switched off (for example, by admin), and false
otherwise. This method only checks on/off settings, and ignores state returned by
isSynchronyClusterManuallyManaged()
true
if synchrony is switched off, and false
otherwise.void setSynchronyOff(boolean off)
off
- true
if Synchrony should be disabled, and false
if Synchrony should be
enabled.io.atlassian.util.concurrent.Promise<Boolean> startup()
boolean stop()
String getSynchronyProperty(SynchronyEnv env)
env
- the key that will be looked upio.atlassian.util.concurrent.Promise<Boolean> restart()
stop()
and then startup()
.
However, this method waits for ExternalProcess.isAlive()
to return false
in between stopping and starting.Map<String,String> getConfiguration()
default boolean isSynchronyStartingUp()
Copyright © 2003–2020 Atlassian. All rights reserved.