com.atlassian.bamboo.plan.cache
Interface ImmutableJob

All Superinterfaces:
BambooIdProvider, DescriptionProvider, ImmutableBuildable, ImmutablePlan, NameProvider, PlanIdentifier
All Known Subinterfaces:
Job
All Known Implementing Classes:
DefaultJob, ImmutableJobImpl

public interface ImmutableJob
extends ImmutableBuildable

Immutable, threadsafe cacheable version of Job

Since:
v4.0

Field Summary
 
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
 
Method Summary
 java.util.List<? extends ImmutableArtifactDefinition> getArtifactDefinitions()
           
 java.util.List<? extends ImmutableArtifactSubscription> getArtifactSubscriptions()
           
 RequirementSet getEffectiveRequirementSet()
          Return effective value of RequirementSet, that is value that is considered when checking which agents and elastic images can build this Buildable.
 ImmutableJob getMaster()
          Return the master plan if one exists.
 ImmutableChain getParent()
           
 RequirementSet getRequirementSet()
           
 ImmutableChainStage getStage()
          The ChainStage that this Job is a member of
 
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
getAverageBuildDuration, getBuildDefinition, getBuildDefinitionXml, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getNextBuildNumber, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletion
 
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
getBuildKey, getBuildName, getId, getMasterId, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
 
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
 

Method Detail

getParent

ImmutableChain getParent()

getStage

@NotNull
ImmutableChainStage getStage()
The ChainStage that this Job 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 interface ImmutablePlan
Returns:
the master Plan if one exists.

getArtifactDefinitions

@NotNull
java.util.List<? extends ImmutableArtifactDefinition> getArtifactDefinitions()
Returns:
list of produced artifacts

getArtifactSubscriptions

@NotNull
java.util.List<? extends ImmutableArtifactSubscription> getArtifactSubscriptions()
Returns:
list of artifact subscriptions

getRequirementSet

@NotNull
RequirementSet getRequirementSet()
Specified by:
getRequirementSet in interface ImmutableBuildable

getEffectiveRequirementSet

@NotNull
RequirementSet getEffectiveRequirementSet()
Return effective value of RequirementSet, that is value that is considered when checking which agents and elastic images can build this Buildable.

Specified by:
getEffectiveRequirementSet in interface ImmutableBuildable
Returns:
the same as getRequirementSet() if ImmutablePlan.hasMaster() is false, getMaster().getRequirementSet() otherwise.


Copyright © 2012 Atlassian. All Rights Reserved.