From 14d05448e2aef78dbd1d097c1872341c163c7c1f Mon Sep 17 00:00:00 2001 From: gjoranv Date: Mon, 6 Jan 2020 15:17:36 +0100 Subject: Follow renaming from configId to nodeId --- .../java/ai/vespa/metricsproxy/http/application/Node.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'metrics-proxy') diff --git a/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/Node.java b/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/Node.java index e1469a9881b..07070027f96 100644 --- a/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/Node.java +++ b/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/Node.java @@ -13,7 +13,7 @@ import java.util.Objects; */ public class Node { - final String configId; + final String nodeId; final String host; final int port; final String path; @@ -24,12 +24,12 @@ public class Node { this(nodeConfig.nodeId(), nodeConfig.hostname(), nodeConfig.metricsPort() , nodeConfig.metricsPath()); } - public Node(String configId, String host, int port, String path) { - Objects.requireNonNull(configId, "Null configId is not allowed"); + public Node(String nodeId, String host, int port, String path) { + Objects.requireNonNull(nodeId, "Null configId is not allowed"); Objects.requireNonNull(host, "Null host is not allowed"); Objects.requireNonNull(path, "Null path is not allowed"); - this.configId = configId; + this.nodeId = nodeId; this.host = host; this.port = port; this.path = path; @@ -37,7 +37,7 @@ public class Node { } public String getName() { - return configId; + return nodeId; } URI metricsUri(ConsumerId consumer) { @@ -50,12 +50,12 @@ public class Node { if (o == null || getClass() != o.getClass()) return false; Node node = (Node) o; return port == node.port && - configId.equals(node.configId) && + nodeId.equals(node.nodeId) && host.equals(node.host); } @Override public int hashCode() { - return Objects.hash(configId, host, port); + return Objects.hash(nodeId, host, port); } } -- cgit v1.2.3