Enum JobType
- java.lang.Object
-
- java.lang.Enum<JobType>
-
- com.yahoo.vespa.hosted.controller.api.integration.deployment.JobType
-
- All Implemented Interfaces:
Serializable,Comparable<JobType>
public enum JobType extends Enum<JobType>
Job types that exist in the build system
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<JobType>allIn(com.yahoo.config.provision.SystemName system)com.yahoo.config.provision.Environmentenvironment()Returns the environment of this job type, or null if it does not have an environmentstatic 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 nonestatic Optional<JobType>from(com.yahoo.config.provision.SystemName system, com.yahoo.config.provision.zone.ZoneId zone)Returns the job type for the given zonestatic 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 zonestatic JobTypefromJobName(String jobName)static Optional<JobType>fromOptionalJobName(String jobName)booleanisDeployment()Returns whether this job deploys to a zonebooleanisProduction()Returns whether this is a production jobbooleanisTest()Returns whether this job runs testsStringjobName()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 nonestatic JobTypevalueOf(String name)Returns the enum constant of this type with the specified name.static JobType[]values()Returns an array containing the constants of this enum type, 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 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
-
productionAwsEuWest1a
public static final JobType productionAwsEuWest1a
-
testAwsEuWest1a
public static final JobType testAwsEuWest1a
-
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
-
testCdUsCentral2
public static final JobType testCdUsCentral2
-
productionCdUsEast1
public static final JobType productionCdUsEast1
-
testCdUsEast1
public static final JobType testCdUsEast1
-
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
-
perfAwsUsEast1c
public static final JobType perfAwsUsEast1c
-
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(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
jobName
public 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
-
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
-
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
-
-