Class DefaultSynchronyProxyMonitor
- java.lang.Object
-
- com.atlassian.confluence.plugins.synchrony.bootstrap.DefaultSynchronyProxyMonitor
-
- All Implemented Interfaces:
SynchronyProxyMonitor
,org.springframework.beans.factory.DisposableBean
@Component public class DefaultSynchronyProxyMonitor extends Object implements SynchronyProxyMonitor, org.springframework.beans.factory.DisposableBean
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.plugins.synchrony.api.SynchronyProxyMonitor
SYNCHRONY_PROXY_CONTEXT_PATH, SYNCHRONY_PROXY_HEALTHCHECK_DISABLED
-
-
Constructor Summary
Constructors Constructor Description DefaultSynchronyProxyMonitor(SynchronyScheduledExecutorServiceProvider executorServiceProvider, HttpClientProvider httpClientProvider, TomcatConfigHelper tomcatConfigHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
boolean
isSynchronyProxyUp()
Determines if the Synchrony Proxy is currently running or not.void
startHealthcheck()
Ping the Synchrony Proxy healthcheck rest endpoint.
-
-
-
Constructor Detail
-
DefaultSynchronyProxyMonitor
@Autowired public DefaultSynchronyProxyMonitor(SynchronyScheduledExecutorServiceProvider executorServiceProvider, HttpClientProvider httpClientProvider, TomcatConfigHelper tomcatConfigHelper)
-
-
Method Detail
-
startHealthcheck
public void startHealthcheck()
Description copied from interface:SynchronyProxyMonitor
Ping the Synchrony Proxy healthcheck rest endpoint. Reschedule another ping in SYNCHRONY_PROXY_HEALTHCHECK_INTERVAL seconds.- Specified by:
startHealthcheck
in interfaceSynchronyProxyMonitor
-
isSynchronyProxyUp
public boolean isSynchronyProxyUp()
Description copied from interface:SynchronyProxyMonitor
Determines if the Synchrony Proxy is currently running or not.- Specified by:
isSynchronyProxyUp
in interfaceSynchronyProxyMonitor
- Returns:
- true if the Synchrony Proxy is running and responding to requests.
-
-