Enum Class JobType
- All Implemented Interfaces:
Serializable,Comparable<JobType>,Constable
Job types that exist in the build system
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionallIn(com.yahoo.config.provision.SystemName system) com.yahoo.config.provision.EnvironmentReturns the environment of this job type, or null if it does not have an environmentfrom(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 nonefrom(com.yahoo.config.provision.SystemName system, com.yahoo.config.provision.zone.ZoneId zone) Returns the job type for the given zonefrom(com.yahoo.config.provision.SystemName system, com.yahoo.config.provision.zone.ZoneId zone, boolean isTest) Returns the job type for the given zonestatic JobTypefromJobName(String jobName) fromOptionalJobName(String jobName) booleanReturns whether this job deploys to a zonebooleanReturns whether this is a production jobbooleanisTest()Returns whether this job runs testsjobName()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 nonestatic JobTypeReturns the enum constant of this class with the specified name.static JobType[]values()Returns an array containing the constants of this enum class, in the order they are declared.com.yahoo.config.provision.zone.ZoneIdzone(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
-
Enum Constant Details
-
systemTest
-
stagingTest
-
productionUsEast3
-
testUsEast3
-
productionUsWest1
-
testUsWest1
-
productionUsCentral1
-
testUsCentral1
-
productionApNortheast1
-
testApNortheast1
-
productionApNortheast2
-
testApNortheast2
-
productionApSoutheast1
-
testApSoutheast1
-
productionEuWest1
-
testEuWest1
-
productionAwsUsEast1a
-
testAwsUsEast1a
-
productionAwsUsEast1c
-
testAwsUsEast1c
-
productionAwsApNortheast1a
-
testAwsApNortheast1a
-
productionAwsEuWest1a
-
testAwsEuWest1a
-
productionAwsUsWest2a
-
testAwsUsWest2a
-
productionAwsUsEast1b
-
testAwsUsEast1b
-
devUsEast1
-
devAwsUsEast2a
-
productionCdAwsUsEast1a
-
testCdAwsUsEast1a
-
productionCdUsCentral1
-
testCdUsCentral1
-
productionCdUsCentral2
-
testCdUsCentral2
-
productionCdUsEast1
-
testCdUsEast1
-
productionCdUsWest1
-
testCdUsWest1
-
devCdUsCentral1
-
devCdUsWest1
-
devAwsUsEast1c
-
perfAwsUsEast1c
-
perfUsEast3
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
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
-
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
-
fromJobName
-
from
public static 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 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 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 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
-