diff options
author | toby <smorgrav@yahoo-inc.com> | 2017-09-08 06:52:14 -0700 |
---|---|---|
committer | toby <smorgrav@yahoo-inc.com> | 2017-09-11 10:15:05 -0700 |
commit | 87c666605096f2d1ba79d23af8d1c36d912f6196 (patch) | |
tree | c61daedced23574df5e5c684076b43dc028a2749 /controller-api | |
parent | 5f42b9b9c2ff4a917573278fcf91ce224b7935ac (diff) |
Only set override for the global service endpoint
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/routing/RoutingEndpoint.java | 21 |
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; + } } |