com.atlassian.bamboo.plan.branch.cache
Class ImmutableChainBranchImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
      extended by com.atlassian.bamboo.plan.cache.AbstractImmutableChain
          extended by com.atlassian.bamboo.plan.branch.cache.ImmutableChainBranchImpl
All Implemented Interfaces:
Chain, BambooIdProvider, BambooObject, Deletable, Describable, ChainBranch, ChainBranchIdentifier, ImmutableChain, ImmutableChainBranch, ImmutableDeletable, ImmutablePlan, Plan, PlanIdentifier, DescriptionProvider, NameProvider

public class ImmutableChainBranchImpl
extends AbstractImmutableChain
implements ChainBranch


Field Summary
 
Fields inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
averageBuildDuration, resultsSummaryManager
 
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
 
Constructor Summary
ImmutableChainBranchImpl(ChainBranch chainBranch, BuildLoggerManager buildLoggerManager, ImmutablePlanManager immutablePlanManager, LabelManager labelManager, ResultsSummaryManager resultsSummaryManager, RepositoryDefinitionManager repositoryDefinitionManager, VariableDefinitionManager variableDefinitionManager, BuildDefinitionManager buildDefinitionManager)
           
 
Method Summary
 BranchCommitInformation getCommitInformation()
           
 Chain getMaster()
          Return the master plan if one exists.
 long getMasterId()
          Database id of master of this ChainBranch
 void setCommitInformation(BranchCommitInformation commitInformation)
           
 
Methods inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutableChain
addNewStage, addStage, containsStage, getAllJobs, getAllStages, getEffectiveRepositoryDefinitions, getJobCount, getLastResultKey, getLatestResultsSummary, getNotificationSet, getStages, isActive, isBusy, isExecuting, removeStage, setNotificationSet
 
Methods inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
compareTo, equals, exceptionOnModification, getAverageBuildDuration, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getCurrentStatus, getDescription, getEffectiveVariables, getFirstBuildNumber, getId, getKey, getLabellings, getLabelNames, getLastBuildNumber, getName, getNextBuildNumber, getPlanKey, getPlanType, getProject, getRelatedLabellings, getType, getVariables, hashCode, hasMaster, hasTests, isMarkedForDeletion, isSuspendedFromBuilding, setBuildDefinitionXml, setBuildKey, setBuildName, setDescription, setFirstBuildNumber, setId, setKey, setLabellings, setLastBuildNumber, setMarkedForDeletion, setMaster, setName, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding, validateBuild
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.plan.branch.ChainBranch
setMaster
 
Methods inherited from interface com.atlassian.bamboo.chains.Chain
addNewStage, addStage, getAllJobs, getAllStages, getStages, removeStage, setNotificationSet
 
Methods inherited from interface com.atlassian.bamboo.plan.Plan
getLabellings, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding, validateBuild
 
Methods inherited from interface com.atlassian.bamboo.Describable
setDescription, setName
 
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable
setMarkedForDeletion
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletion
 
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableChain
containsStage, getEffectiveRepositoryDefinitions, getJobCount, getLastResultKey, getNotificationSet
 
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, hasTests, isActive, isBusy, isExecuting, isMarkedForDeletion
 

Constructor Detail

ImmutableChainBranchImpl

public ImmutableChainBranchImpl(ChainBranch chainBranch,
                                BuildLoggerManager buildLoggerManager,
                                ImmutablePlanManager immutablePlanManager,
                                LabelManager labelManager,
                                ResultsSummaryManager resultsSummaryManager,
                                RepositoryDefinitionManager repositoryDefinitionManager,
                                VariableDefinitionManager variableDefinitionManager,
                                BuildDefinitionManager buildDefinitionManager)
Method Detail

getMaster

@NotNull
public Chain 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 Chain
Specified by:
getMaster in interface ImmutablePlan
Overrides:
getMaster in class AbstractImmutableChain
Returns:
the master Plan if one exists.

getMasterId

public long getMasterId()
Description copied from interface: ChainBranchIdentifier
Database id of master of this ChainBranch

Specified by:
getMasterId in interface ChainBranchIdentifier
Returns:

setCommitInformation

public void setCommitInformation(@Nullable
                                 BranchCommitInformation commitInformation)
Specified by:
setCommitInformation in interface ChainBranch

getCommitInformation

public BranchCommitInformation getCommitInformation()
Specified by:
getCommitInformation in interface ImmutableChainBranch


Copyright © 2012 Atlassian. All Rights Reserved.