@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(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.
|
public 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 BaseUrlSelector
public List<String> getAllNodeBaseUrls()
getAllNodeBaseUrls
in interface BaseUrlSelector
public String getConfiguredBaseUrl()
getConfiguredBaseUrl
in interface BaseUrlSelector
BaseUrlSelector.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 BaseUrlSelector
Copyright © 2003–2018 Atlassian. All rights reserved.