summaryrefslogtreecommitdiffstats
path: root/metrics-proxy
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2020-01-06 15:17:36 +0100
committergjoranv <gv@verizonmedia.com>2020-01-06 15:17:36 +0100
commit14d05448e2aef78dbd1d097c1872341c163c7c1f (patch)
tree8d38e6b1cd0d0c4e30ad0d2d168652f8be379d4e /metrics-proxy
parente8c9658d0c417a81267b87d05077d5eeb635bb13 (diff)
Follow renaming from configId to nodeId
Diffstat (limited to 'metrics-proxy')
-rw-r--r--metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/Node.java14
1 files changed, 7 insertions, 7 deletions
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);
}
}