Class JobType
java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.deployment.JobType
- All Implemented Interfaces:
Comparable<JobType>
Specification for a deployment and/or test job to run: what zone, and whether it is a production test.
- Author:
- jonmv
-
Method Summary
Modifier and TypeMethodDescriptionallIn(ZoneRegistry zones) intstatic JobTypedeploymentTo(com.yahoo.config.provision.zone.ZoneId zone) A deployment to the given zone; this may be a zone in thetestorstagingenvironments.static JobTypedev(com.yahoo.config.provision.RegionName region) A deployment to the given dev region.static JobTypeA deployment to the given dev region.com.yahoo.config.provision.EnvironmentReturns the environment of this job typebooleanstatic JobTypefromJobName(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.inthashCode()booleanReturns whether this job deploys to a zonebooleanReturns whether this is a production jobbooleanbooleanbooleanisTest()Returns whether this job runs testsjobName()static JobTypeofSerialized(String raw) Creates a new job type from serialized zone data, and whether it is a production test; the inverse ofserialized()static JobTypeperf(com.yahoo.config.provision.RegionName region) A deployment to the given perf region.static JobTypeA deployment to the given perf region.static JobTypeprod(com.yahoo.config.provision.RegionName region) A deployment to the given prod region.static JobTypeA deployment to the given prod region.static JobTypeproductionTestOf(com.yahoo.config.provision.zone.ZoneId zone) A production test in the given production zone.A serialized form of this:<environment>.<region>[.test]; the inverse ofofSerialized(String)static JobTypestagingTest(ZoneRegistry zones, com.yahoo.config.provision.CloudName cloud) A staging test in a staging zone, or throws if no staging zones are present.static JobTypesystemTest(ZoneRegistry zones, com.yahoo.config.provision.CloudName cloud) A system test in a test zone, or throws if no test zones are present..static JobTypetest(com.yahoo.config.provision.RegionName region) A production test in the given region.static JobTypeA production test in the given region.toString()com.yahoo.config.provision.zone.ZoneIdzone()Returns the zone for this job.
-
Method Details
-
systemTest
A system test in a test zone, or throws if no test zones are present.. -
stagingTest
A staging test in a staging zone, or throws if no staging zones are present. -
dev
A deployment to the given dev region. -
dev
A deployment to the given dev region. -
perf
A deployment to the given perf region. -
perf
A deployment to the given perf region. -
prod
A deployment to the given prod region. -
prod
A deployment to the given prod region. -
test
A production test in the given region. -
test
A production test in the given region. -
deploymentTo
A deployment to the given zone; this may be a zone in thetestorstagingenvironments. -
productionTestOf
A production test in the given production zone. -
ofSerialized
Creates a new job type from serialized zone data, and whether it is a production test; the inverse ofserialized() -
fromJobName
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
-
serialized
A serialized form of this:<environment>.<region>[.test]; the inverse ofofSerialized(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
- Specified by:
compareToin interfaceComparable<JobType>
-
equals
-
hashCode
public int hashCode() -
toString
-