@Deprecated public class ConfluenceBaseUrlSelector extends Object implements BaseUrlSelector
| Modifier and Type | Field and Description |
|---|---|
static RandomnessHandler |
RANDOMNESS_HANDLER
Deprecated.
|
| Constructor and Description |
|---|
ConfluenceBaseUrlSelector()
Deprecated.
Since 5.6 Use
ConfluenceBaseUrlSelector(org.slf4j.Logger) |
ConfluenceBaseUrlSelector(@NonNull org.slf4j.Logger logger)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllNodeBaseUrls()
Deprecated.
|
String |
getBaseUrl()
Deprecated.
|
String |
getConfiguredBaseUrl()
Deprecated.
|
String |
substituteForNodeBaseUrl(String url)
Deprecated.
Our cluster builds don't have a load balancer, this base URL actually points at node 1.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitundeprecatepublic static final RandomnessHandler RANDOMNESS_HANDLER
@Deprecated public ConfluenceBaseUrlSelector()
ConfluenceBaseUrlSelector(org.slf4j.Logger)public ConfluenceBaseUrlSelector(@NonNull org.slf4j.Logger logger)
public String getBaseUrl()
getBaseUrl in interface BaseUrlSelectorpublic List<String> getAllNodeBaseUrls()
getAllNodeBaseUrls in interface BaseUrlSelectorpublic String getConfiguredBaseUrl()
getConfiguredBaseUrl in interface BaseUrlSelectorBaseUrlSelector.getBaseUrl().public String substituteForNodeBaseUrl(String url)
BaseUrlSelector.getConfiguredBaseUrl() in it by the server, then pinging that URL
will take it to node 1, and the test will fail.
This method checks to see if the given URL starts with the BaseUrlSelector.getConfiguredBaseUrl(), and if so then
substitutes it with the BaseUrlSelector.getBaseUrl() that points at the node that the current test is running against.
It also checks to see if the given URL starts with the base URL of any of the other cluster nodes, and performs a similar substitution.
If and when our cluster builds get a load balancer, we should be able to take this nastiness out.
substituteForNodeBaseUrl in interface BaseUrlSelectorCopyright © 2003–2022 Atlassian. All rights reserved.