Package com.atlassian.bamboo.plan.cache
Interface ImmutableChain
- All Superinterfaces:
BambooIdProvider,DescriptionProvider,ImmutableDeletable,ImmutableEntityWithOid,ImmutablePlan,NameProvider,PlanIdentifier,PlanKeyProvider,Triggerable,Versionable
- All Known Subinterfaces:
Chain,ChainBranch,ImmutableChainBranch,ImmutableTopLevelPlan,TopLevelPlan
- All Known Implementing Classes:
AbstractChain,AbstractImmutableChain,ChainBranchImpl,DefaultChain,ImmutableChainBranchImpl,ImmutableChainImpl
Represents a
Chain that is immutable. Since 3.4, all new uses of Chains should prefer this interface
to improve cacheability.- Since:
- v3.4
-
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_SUCCESSFields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
NAME_DELIMITERFields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider
getPlanKey -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsStage(@Nullable String stageName) Checks whether or not a stage exists in this chain by stage name.@NotNull List<? extends ImmutableJob>Note: Does not include Jobs that are marked for deletion.@NotNull List<? extends ImmutableChainStage>Get Stages of the Chain@NotNull Datedefault BambooEntityTypeEntity type of this object, used inBambooEntityOid.intNote: Does not include Jobs that are marked for deletion.@Nullable PlanResultKeyGet the latest result key including active (not finished) results@Nullable ImmutableChainReturn the master plan if one exists.Get notifications defined for this plan.@NotNull List<PlanRepositoryDefinition>Return list of repositories available to the chain.@NotNull List<? extends ImmutableChainStage>Get Stages of the chain.@Nullable ImmutableVcsBambooSpecsSourceMethods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescriptionMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOidMethods 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, isMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuildingMethods inherited from interface com.atlassian.bamboo.trigger.Triggerable
getTriggerDefinitions, isSuspendedMethods inherited from interface com.atlassian.bamboo.versioning.Versionable
getVersion
-
Method Details
-
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.
-
getNotificationSet
NotificationSet getNotificationSet()Get notifications defined for this plan.- Returns:
NotificationSetcontaining notifications for this plan.
-
getStages
Get Stages of the chain.Note that this excludes
ChainStages that have been marked for deletion- Returns:
- stages
-
getAllStages
Get Stages of the ChainNote that this includes
ChainStages that have been marked for deletion- Returns:
- stages
-
containsStage
Checks whether or not a stage exists in this chain by stage name.- Parameters:
stageName- to check for- Returns:
- true if a stage with the given name exists, otherwise false
-
getJobCount
int getJobCount()Note: Does not include Jobs that are marked for deletion.- Returns:
- how many Jobs are currently contained within this chain
-
getAllJobs
Note: Does not include Jobs that are marked for deletion.- Returns:
- a list of all Jobs that are currently contained within this chain - no order guaranteed.
-
getPlanRepositoryDefinitions
Return list of repositories available to the chain. In case of non-master object it will return list of master's repository definitions with default repository overridden by a private copy of default repository.- Returns:
- ordered
Listof repositories available to this plan
-
getLastResultKey
Get the latest result key including active (not finished) results- Returns:
- The key of the last build. Returns null if there are no build results for this plan
-
getEntityType
Description copied from interface:ImmutableEntityWithOidEntity type of this object, used inBambooEntityOid.- Specified by:
getEntityTypein interfaceImmutableEntityWithOid
-
getStorageTag
ChainStorageTag getStorageTag() -
getVcsBambooSpecsSource
- Returns:
- specs source used to manage this plan, or null if plan is not managed by RSS
-
getCreationDate
- Returns:
- chain creation date
- Since:
- 6.5
-