summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@verizonmedia.com>2019-11-24 14:11:50 +0100
committerValerij Fredriksen <valerijf@verizonmedia.com>2019-11-25 13:16:51 +0100
commit7b8a1c833588a9e3994832b9c4062ce2d882caa3 (patch)
treec0b033635f8a6901ed19785ea2f82ec9938446c5 /controller-api
parent3b2a0d112250e0b41421b3c2bee0ac32bdbd8e3e (diff)
Use flavor instead of canonicalFlavor in Node
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/Node.java20
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java2
2 files changed, 11 insertions, 11 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/Node.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/Node.java
index e7ca5c9b7f8..43fea2b76fd 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/Node.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/Node.java
@@ -34,14 +34,14 @@ public class Node {
private final long rebootGeneration;
private final long wantedRebootGeneration;
private final int cost;
- private final String canonicalFlavor;
+ private final String flavor;
private final String clusterId;
private final ClusterType clusterType;
public Node(HostName hostname, Optional<HostName> parentHostname, State state, NodeType type, NodeResources resources, Optional<ApplicationId> owner,
Version currentVersion, Version wantedVersion, Version currentOsVersion, Version wantedOsVersion, ServiceState serviceState,
long restartGeneration, long wantedRestartGeneration, long rebootGeneration, long wantedRebootGeneration,
- int cost, String canonicalFlavor, String clusterId, ClusterType clusterType) {
+ int cost, String flavor, String clusterId, ClusterType clusterType) {
this.hostname = hostname;
this.parentHostname = parentHostname;
this.state = state;
@@ -58,7 +58,7 @@ public class Node {
this.rebootGeneration = rebootGeneration;
this.wantedRebootGeneration = wantedRebootGeneration;
this.cost = cost;
- this.canonicalFlavor = canonicalFlavor;
+ this.flavor = flavor;
this.clusterId = clusterId;
this.clusterType = clusterType;
}
@@ -125,8 +125,8 @@ public class Node {
return cost;
}
- public String canonicalFlavor() {
- return canonicalFlavor;
+ public String flavor() {
+ return flavor;
}
public String clusterId() {
@@ -195,7 +195,7 @@ public class Node {
private long rebootGeneration;
private long wantedRebootGeneration;
private int cost;
- private String canonicalFlavor;
+ private String flavor;
private String clusterId;
private ClusterType clusterType;
@@ -218,7 +218,7 @@ public class Node {
this.rebootGeneration = node.rebootGeneration;
this.wantedRebootGeneration = node.wantedRebootGeneration;
this.cost = node.cost;
- this.canonicalFlavor = node.canonicalFlavor;
+ this.flavor = node.flavor;
this.clusterId = node.clusterId;
this.clusterType = node.clusterType;
}
@@ -303,8 +303,8 @@ public class Node {
return this;
}
- public Builder canonicalFlavor(String canonicalFlavor) {
- this.canonicalFlavor = canonicalFlavor;
+ public Builder flavor(String flavor) {
+ this.flavor = flavor;
return this;
}
@@ -321,7 +321,7 @@ public class Node {
public Node build() {
return new Node(hostname, parentHostname, state, type, resources, owner, currentVersion, wantedVersion, currentOsVersion,
wantedOsVersion, serviceState, restartGeneration, wantedRestartGeneration, rebootGeneration, wantedRebootGeneration,
- cost, canonicalFlavor, clusterId, clusterType);
+ cost, flavor, clusterId, clusterType);
}
}
}
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java
index 52d2ab2f242..94616fd27b2 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java
@@ -101,7 +101,7 @@ public interface NodeRepository {
toInt(node.getCurrentRebootGeneration()),
toInt(node.getRebootGeneration()),
toInt(node.getCost()),
- node.getCanonicalFlavor(),
+ node.getFlavor(),
clusterIdOf(node.getMembership()),
clusterTypeOf(node.getMembership()));
}