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 RequirementSet
getEffectiveRequirementSet()
Return effective value ofRequirementSet
, that is value that is considered when checking which agents and elastic images can build this Buildable.default BambooEntityType
getEntityType()
Entity type of this object, used inBambooEntityOid
.ImmutableJob
getMaster()
Return the master plan if one exists.@NotNull ImmutableChain
getParent()
@NotNull RequirementSet
getRequirementSet()
@NotNull ImmutableChainStage
getStage()
TheChainStage
that thisJob
is a member ofboolean
isDivergent()
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()
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
@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:
getRequirementSet
in 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:
getEffectiveRequirementSet
in interfaceImmutableBuildable
- Returns:
- the same as
getRequirementSet()
ifImmutablePlan.hasMaster()
is false, getMaster().getRequirementSet() otherwise.
-
getEntityType
default BambooEntityType 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
-
-