Package com.atlassian.bamboo.plan.cache
Interface ImmutableJob
-
- All Superinterfaces:
BambooIdProvider,DescriptionProvider,ImmutableBuildable,ImmutableDeletable,ImmutableEntityWithOid,ImmutablePlan,NameProvider,PlanIdentifier,PlanKeyProvider,TaskContainer,Versionable
- All Known Subinterfaces:
Job
- All Known Implementing Classes:
DefaultJob,ImmutableJobImpl
public interface ImmutableJob extends ImmutableBuildable, TaskContainer
Immutable, threadsafe cacheable version ofJob- Since:
- v4.0
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
-
Fields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
NAME_DELIMITER
-
Fields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider
getPlanKey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @NotNull List<? extends ImmutableArtifactDefinition>getArtifactDefinitions()@NotNull List<? extends ImmutableArtifactSubscription>getArtifactSubscriptions()@NotNull RequirementSetgetEffectiveRequirementSet()Return effective value ofRequirementSet, that is value that is considered when checking which agents and elastic images can build this Buildable.default BambooEntityTypegetEntityType()Entity type of this object, used inBambooEntityOid.ImmutableJobgetMaster()Return the master plan if one exists.@NotNull ImmutableChaingetParent()@NotNull RequirementSetgetRequirementSet()@NotNull ImmutableChainStagegetStage()TheChainStagethat thisJobis a member ofbooleanisDivergent()Is part of divergent branch.-
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
-
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
getAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletion
-
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
-
Methods inherited from interface com.atlassian.bamboo.task.TaskContainer
getTaskDefinitions
-
Methods inherited from interface com.atlassian.bamboo.versioning.Versionable
getVersion
-
-
-
-
Method Detail
-
getParent
@NotNull @NotNull ImmutableChain getParent()
-
getStage
@NotNull @NotNull ImmutableChainStage getStage()
TheChainStagethat thisJobis a member of- Returns:
- stage
-
getMaster
ImmutableJob getMaster()
Description copied from interface:ImmutablePlanReturn the master plan if one exists. The master is the plan which this one is derived from. Configuration is pulled from the master if one exists.- Specified by:
getMasterin interfaceImmutablePlan- Returns:
- the master
Planif one exists.
-
getArtifactDefinitions
@NotNull @NotNull List<? extends ImmutableArtifactDefinition> getArtifactDefinitions()
- Returns:
- list of produced artifacts
-
getArtifactSubscriptions
@NotNull @NotNull List<? extends ImmutableArtifactSubscription> getArtifactSubscriptions()
- Returns:
- list of artifact subscriptions
-
getRequirementSet
@NotNull @NotNull RequirementSet getRequirementSet()
- Specified by:
getRequirementSetin interfaceImmutableBuildable
-
getEffectiveRequirementSet
@NotNull @NotNull RequirementSet getEffectiveRequirementSet()
Return effective value ofRequirementSet, that is value that is considered when checking which agents and elastic images can build this Buildable.- Specified by:
getEffectiveRequirementSetin interfaceImmutableBuildable- Returns:
- the same as
getRequirementSet()ifImmutablePlan.hasMaster()is false, getMaster().getRequirementSet() otherwise.
-
getEntityType
default BambooEntityType getEntityType()
Description copied from interface:ImmutableEntityWithOidEntity type of this object, used inBambooEntityOid.- Specified by:
getEntityTypein interfaceImmutableEntityWithOid
-
isDivergent
boolean isDivergent()
Is part of divergent branch.- Since:
- 7.0
-
-