java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.deployment.JobType
All Implemented Interfaces:
Comparable<JobType>

public final class JobType extends Object implements Comparable<JobType>
Specification for a deployment and/or test job to run: what zone, and whether it is a production test.
Author:
jonmv
  • Method Details

    • systemTest

      public static JobType systemTest(ZoneRegistry zones, com.yahoo.config.provision.CloudName cloud)
      A system test in a test zone, or throws if no test zones are present..
    • stagingTest

      public static JobType stagingTest(ZoneRegistry zones, com.yahoo.config.provision.CloudName cloud)
      A staging test in a staging zone, or throws if no staging zones are present.
    • dev

      public static JobType dev(com.yahoo.config.provision.RegionName region)
      A deployment to the given dev region.
    • dev

      public static JobType dev(String region)
      A deployment to the given dev region.
    • perf

      public static JobType perf(com.yahoo.config.provision.RegionName region)
      A deployment to the given perf region.
    • perf

      public static JobType perf(String region)
      A deployment to the given perf region.
    • prod

      public static JobType prod(com.yahoo.config.provision.RegionName region)
      A deployment to the given prod region.
    • prod

      public static JobType prod(String region)
      A deployment to the given prod region.
    • test

      public static JobType test(com.yahoo.config.provision.RegionName region)
      A production test in the given region.
    • test

      public static JobType test(String region)
      A production test in the given region.
    • deploymentTo

      public static JobType deploymentTo(com.yahoo.config.provision.zone.ZoneId zone)
      A deployment to the given zone; this may be a zone in the test or staging environments.
    • productionTestOf

      public static JobType productionTestOf(com.yahoo.config.provision.zone.ZoneId zone)
      A production test in the given production zone.
    • ofSerialized

      public static JobType ofSerialized(String raw)
      Creates a new job type from serialized zone data, and whether it is a production test; the inverse of serialized()
    • fromJobName

      public static JobType fromJobName(String jobName, ZoneRegistry zones)
      Creates a new job type from a job name, and a zone registry for looking up zones for the special system and staging test types. Note: system and staging tests retrieved by job name always use the default cloud for the system!
    • allIn

      public static List<JobType> allIn(ZoneRegistry zones)
    • serialized

      public String serialized()
      A serialized form of this: &lt;environment&gt;.&lt;region&gt;[.test]; the inverse of ofSerialized(String)
    • jobName

      public String jobName()
    • zone

      public com.yahoo.config.provision.zone.ZoneId zone()
      Returns the zone for this job.
    • isSystemTest

      public boolean isSystemTest()
    • isStagingTest

      public boolean isStagingTest()
    • isProduction

      public boolean isProduction()
      Returns whether this is a production job
    • isTest

      public boolean isTest()
      Returns whether this job runs tests
    • isDeployment

      public boolean isDeployment()
      Returns whether this job deploys to a zone
    • environment

      public com.yahoo.config.provision.Environment environment()
      Returns the environment of this job type
    • compareTo

      public int compareTo(JobType other)
      Specified by:
      compareTo in interface Comparable<JobType>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object