Enum JobType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<JobType>

    public enum JobType
    extends java.lang.Enum<JobType>
    Job types that exist in the build system
    • Enum Constant Detail

      • systemTest

        public static final JobType systemTest
      • stagingTest

        public static final JobType stagingTest
      • productionUsEast3

        public static final JobType productionUsEast3
      • testUsEast3

        public static final JobType testUsEast3
      • productionUsWest1

        public static final JobType productionUsWest1
      • testUsWest1

        public static final JobType testUsWest1
      • productionUsCentral1

        public static final JobType productionUsCentral1
      • testUsCentral1

        public static final JobType testUsCentral1
      • productionApNortheast1

        public static final JobType productionApNortheast1
      • testApNortheast1

        public static final JobType testApNortheast1
      • productionApNortheast2

        public static final JobType productionApNortheast2
      • testApNortheast2

        public static final JobType testApNortheast2
      • productionApSoutheast1

        public static final JobType productionApSoutheast1
      • testApSoutheast1

        public static final JobType testApSoutheast1
      • productionEuWest1

        public static final JobType productionEuWest1
      • testEuWest1

        public static final JobType testEuWest1
      • productionAwsUsEast1a

        public static final JobType productionAwsUsEast1a
      • testAwsUsEast1a

        public static final JobType testAwsUsEast1a
      • productionAwsUsEast1c

        public static final JobType productionAwsUsEast1c
      • testAwsUsEast1c

        public static final JobType testAwsUsEast1c
      • productionAwsApNortheast1a

        public static final JobType productionAwsApNortheast1a
      • testAwsApNortheast1a

        public static final JobType testAwsApNortheast1a
      • productionAwsUsWest2a

        public static final JobType productionAwsUsWest2a
      • testAwsUsWest2a

        public static final JobType testAwsUsWest2a
      • productionAwsUsEast1b

        public static final JobType productionAwsUsEast1b
      • testAwsUsEast1b

        public static final JobType testAwsUsEast1b
      • devUsEast1

        public static final JobType devUsEast1
      • devAwsUsEast2a

        public static final JobType devAwsUsEast2a
      • productionCdAwsUsEast1a

        public static final JobType productionCdAwsUsEast1a
      • testCdAwsUsEast1a

        public static final JobType testCdAwsUsEast1a
      • productionCdUsCentral1

        public static final JobType productionCdUsCentral1
      • testCdUsCentral1

        public static final JobType testCdUsCentral1
      • productionCdUsCentral2

        public static final JobType productionCdUsCentral2
      • productionCdUsWest1

        public static final JobType productionCdUsWest1
      • testCdUsWest1

        public static final JobType testCdUsWest1
      • devCdUsCentral1

        public static final JobType devCdUsCentral1
      • devCdUsWest1

        public static final JobType devCdUsWest1
      • devAwsUsEast1c

        public static final JobType devAwsUsEast1c
      • perfUsEast3

        public static final JobType perfUsEast3
    • Method Detail

      • values

        public static JobType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JobType c : JobType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JobType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • jobName

        public java.lang.String jobName()
      • zone

        public com.yahoo.config.provision.zone.ZoneId zone​(com.yahoo.config.provision.SystemName system)
        Returns the zone for this job in the given system, or throws if this job does not have a zone
      • allIn

        public static java.util.List<JobType> allIn​(com.yahoo.config.provision.SystemName system)
      • 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, or null if it does not have an environment
      • fromOptionalJobName

        public static java.util.Optional<JobType> fromOptionalJobName​(java.lang.String jobName)
      • fromJobName

        public static JobType fromJobName​(java.lang.String jobName)
      • from

        public static java.util.Optional<JobType> from​(com.yahoo.config.provision.SystemName system,
                                                       com.yahoo.config.provision.zone.ZoneId zone,
                                                       boolean isTest)
        Returns the job type for the given zone
      • from

        public static java.util.Optional<JobType> from​(com.yahoo.config.provision.SystemName system,
                                                       com.yahoo.config.provision.zone.ZoneId zone)
        Returns the job type for the given zone
      • testFrom

        public static java.util.Optional<JobType> testFrom​(com.yahoo.config.provision.SystemName system,
                                                           com.yahoo.config.provision.RegionName region)
        Returns the production test job type for the given environment and region or null if none
      • from

        public static java.util.Optional<JobType> from​(com.yahoo.config.provision.SystemName system,
                                                       com.yahoo.config.provision.Environment environment,
                                                       com.yahoo.config.provision.RegionName region)
        Returns the job job type for the given environment and region or null if none