summaryrefslogtreecommitdiffstats
path: root/service-monitor
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2020-03-17 12:37:31 +0100
committerHarald Musum <musum@verizonmedia.com>2020-03-17 12:37:31 +0100
commit195d5f4848e3f85368f7279e4b3956d8f2b740b2 (patch)
tree01898f91ee784587fbf12ab6b28b2b545b216e6e /service-monitor
parentd04a6cbda7d2cfcbf649039b2f89d2769546dc5e (diff)
Use two builder methods, request() and specification()
request() should be used when requesting a cluster, same as old static method called request(). specification() should be used when creating a clsuter spec for an existing cluster, same as old static method from(). specification() will throw an exception if some required fields are not set
Diffstat (limited to 'service-monitor')
-rw-r--r--service-monitor/src/main/java/com/yahoo/vespa/service/duper/InfraApplication.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/service-monitor/src/main/java/com/yahoo/vespa/service/duper/InfraApplication.java b/service-monitor/src/main/java/com/yahoo/vespa/service/duper/InfraApplication.java
index 276fe054939..299ea47b257 100644
--- a/service-monitor/src/main/java/com/yahoo/vespa/service/duper/InfraApplication.java
+++ b/service-monitor/src/main/java/com/yahoo/vespa/service/duper/InfraApplication.java
@@ -26,7 +26,6 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
-import java.util.Optional;
import java.util.stream.Collectors;
/**
@@ -75,7 +74,7 @@ public abstract class InfraApplication implements InfraApplicationApi {
@Override
public ClusterSpec getClusterSpecWithVersion(Version version) {
- return ClusterSpec.builder(clusterSpecType, clusterSpecId).vespaVersion(version).exclusive(true).build();
+ return ClusterSpec.request(clusterSpecType, clusterSpecId).vespaVersion(version).exclusive(true).build();
}
public ClusterSpec.Type getClusterSpecType() {