summaryrefslogtreecommitdiffstats
path: root/vespaclient-core
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-01-04 16:43:06 +0100
committerJon Marius Venstad <venstad@gmail.com>2021-01-04 16:43:06 +0100
commitb1e15a0e12bc6fb258b65cdd6e6fcfb925e8f3c1 (patch)
tree2676f0ddbf2df00c17cdd362559d2c4890a3d0a6 /vespaclient-core
parent6eede0d2c93cd086a980d2bed5c5cc5d1eca9712 (diff)
Use clustername-direct routes for visitors
Diffstat (limited to 'vespaclient-core')
-rw-r--r--vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterDef.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterDef.java b/vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterDef.java
index 3860941d0ec..f3b8c189fc5 100644
--- a/vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterDef.java
+++ b/vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterDef.java
@@ -2,11 +2,8 @@
package com.yahoo.vespaclient;
public class ClusterDef {
- public ClusterDef(String name) {
- this.name = name;
- }
-
- String name;
-
+ private final String name;
+ public ClusterDef(String name) { this.name = name; }
public String getName() { return name; }
+ public String getRoute() { return name + "-direct"; }
}