@Component public class DefaultSynchronyMonitor extends Object implements SynchronyMonitor
Constructor and Description |
---|
DefaultSynchronyMonitor(BootstrapManager bootstrapManager,
com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager configurationManager,
com.atlassian.confluence.plugins.synchrony.bootstrap.SynchronyExecutorServiceProvider executorServiceProvider,
HttpClientProvider httpClientProvider) |
Modifier and Type | Method and Description |
---|---|
boolean |
isSynchronyUp()
Determines if the Synchrony that Confluence uses to connect to is currently running or not.
|
com.atlassian.util.concurrent.Promise<Boolean> |
pollHeartbeat()
Ping the Synchrony heartbeat rest endpoint, until the result is a 200 OK or a timeout is reached.
|
@Autowired public DefaultSynchronyMonitor(BootstrapManager bootstrapManager, com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager configurationManager, com.atlassian.confluence.plugins.synchrony.bootstrap.SynchronyExecutorServiceProvider executorServiceProvider, HttpClientProvider httpClientProvider)
public boolean isSynchronyUp()
SynchronyMonitor
isSynchronyUp
in interface SynchronyMonitor
public com.atlassian.util.concurrent.Promise<Boolean> pollHeartbeat()
SynchronyMonitor
pollHeartbeat
in interface SynchronyMonitor
Copyright © 2003–2016 Atlassian. All rights reserved.