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
Immutable, threadsafe cacheable version of
Job
- 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
Modifier and TypeMethodDescription@NotNull List<? extends ImmutableArtifactDefinition>
@NotNull List<? extends ImmutableArtifactSubscription>
@NotNull RequirementSet
Return effective value ofRequirementSet
, that is value that is considered when checking which agents and elastic images can build this Buildable.default BambooEntityType
Entity type of this object, used inBambooEntityOid
.Return the master plan if one exists.@NotNull ImmutableChain
@NotNull RequirementSet
@NotNull ImmutableChainStage
getStage()
TheChainStage
that thisJob
is a member ofboolean
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 Details
-
getParent
-
getStage
TheChainStage
that thisJob
is a member of- Returns:
- stage
-
getMaster
ImmutableJob getMaster()Description copied from interface:ImmutablePlan
Return 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:
getMaster
in interfaceImmutablePlan
- Returns:
- the master
Plan
if one exists.
-
getArtifactDefinitions
- Returns:
- list of produced artifacts
-
getArtifactSubscriptions
- Returns:
- list of artifact subscriptions
-
getRequirementSet
- Specified by:
getRequirementSet
in interfaceImmutableBuildable
-
getEffectiveRequirementSet
Return effective value ofRequirementSet
, that is value that is considered when checking which agents and elastic images can build this Buildable.- Specified by:
getEffectiveRequirementSet
in interfaceImmutableBuildable
- Returns:
- the same as
getRequirementSet()
ifImmutablePlan.hasMaster()
is false, getMaster().getRequirementSet() otherwise.
-
getEntityType
Description copied from interface:ImmutableEntityWithOid
Entity type of this object, used inBambooEntityOid
.- Specified by:
getEntityType
in interfaceImmutableEntityWithOid
-
isDivergent
boolean isDivergent()Is part of divergent branch.- Since:
- 7.0
-