summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2022-04-16 19:13:44 +0200
committerjonmv <venstad@gmail.com>2022-04-19 10:38:07 +0200
commitf9133d57754e4659f1fd8dc6efe82c5120f789dc (patch)
treec2944fb9c15f46217c7ef437307b22d2d3f2f734 /controller-api
parent14a5b194aef938fbaa91a80d9140c73c117619cc (diff)
Use JobType.fromJobName with zones all other places than in sdeserialisation
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java
index a5083368584..4505fe3ceb5 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java
@@ -198,6 +198,11 @@ public final class JobType implements Comparable<JobType> {
public String jobName() { return jobName; }
+ /** Returns the zone for this job in the given system. */
+ public ZoneId zone() {
+ throw new UnsupportedOperationException();
+ }
+
/** Returns the zone for this job in the given system, or throws if this job does not have a zone */
public ZoneId zone(SystemName system) {
if ( ! zones.containsKey(system))