From 3594d15ab25fe245f76e7563f12b4f5797b985c7 Mon Sep 17 00:00:00 2001 From: Olli Virtanen Date: Tue, 19 Mar 2019 22:25:46 +0100 Subject: Search over protobuf + jrt --- .../main/java/com/yahoo/search/dispatch/searchcluster/Node.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/Node.java') diff --git a/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/Node.java b/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/Node.java index 98deb9e3199..7e0e3117628 100644 --- a/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/Node.java +++ b/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/Node.java @@ -14,6 +14,7 @@ import java.util.concurrent.atomic.AtomicLong; public class Node { private final int key; + private int pathIndex; private final String hostname; private final int fs4port; final int group; @@ -31,6 +32,12 @@ public class Node { /** Returns the unique and stable distribution key of this node */ public int key() { return key; } + public int pathIndex() { return pathIndex; } + + void setPathIndex(int index) { + pathIndex = index; + } + public String hostname() { return hostname; } public int fs4port() { return fs4port; } -- cgit v1.2.3