summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorTorbjørn Smørgrav <smorgrav@users.noreply.github.com>2017-09-12 07:55:00 -0700
committerGitHub <noreply@github.com>2017-09-12 07:55:00 -0700
commit3ca4ca6f6f745f4824f371c2096e298689be31d3 (patch)
treeb6c14ee49a66bb2850321453c3d9ce61cf86f512 /controller-api
parent664dc8e147928cd05a16954cbfdd6efb34dd144a (diff)
parent53ee8d8f0a5946b1a8b290e1fe3843816b0ad1a2 (diff)
Merge pull request #3391 from vespa-engine/smorgrav/fix_bcp_api
Only set override for the canonical service endpoint
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/routing/RoutingEndpoint.java21
1 files changed, 15 insertions, 6 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/routing/RoutingEndpoint.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/routing/RoutingEndpoint.java
index a4bf733bd2c..fe3a37effdb 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/routing/RoutingEndpoint.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/routing/RoutingEndpoint.java
@@ -8,23 +8,32 @@ public class RoutingEndpoint {
private final boolean isGlobal;
private final String endpoint;
+ private final String hostname;
public RoutingEndpoint(String endpoint, boolean isGlobal) {
this.endpoint = endpoint;
+ this.hostname = null;
this.isGlobal = isGlobal;
}
- /**
- * @return True if the endpoint is global
- */
+ public RoutingEndpoint(String endpoint, String hostname, boolean isGlobal) {
+ this.endpoint = endpoint;
+ this.hostname = hostname;
+ this.isGlobal = isGlobal;
+ }
+
+ /** @return True if the endpoint is global */
public boolean isGlobal() {
return isGlobal;
}
- /*
- * @return The URI for the endpoint
- */
+ /* @return The URI for the endpoint */
public String getEndpoint() {
return endpoint;
}
+
+ /** @return The hostname for this endpoint */
+ public String getHostname() {
+ return hostname;
+ }
}