com.atlassian.bamboo.chains
Class BuildContextFactoryImpl

java.lang.Object
  extended by com.atlassian.bamboo.chains.BuildContextFactoryImpl
All Implemented Interfaces:
BuildContextFactory

public class BuildContextFactoryImpl
extends java.lang.Object
implements BuildContextFactory


Constructor Summary
BuildContextFactoryImpl(ArtifactSubscriptionManager artifactSubscriptionManager, VariableDefinitionManager variableDefinitionManager, TaskManager taskManager, TestQuarantineManager testQuarantineManager, AdministrationConfigurationManager administrationConfigurationManager, BranchIntegrationService branchIntegrationService, FeatureManager featureManager)
           
 
Method Summary
 BuildRepositoryChanges buildChangesUnion(BuildRepositoryChanges a, BuildRepositoryChanges b)
           
 BuildRepositoryChanges cloneBuildRepositoryChanges(BuildRepositoryChanges buildRepositoryChanges)
          This is not a real clone() operation
 java.util.Collection<BuildContext> createBuildContextsForContinuedBuild(ImmutableChain chain, ChainResultsSummary chainResultsSummary, BuildContext parentBuildContext, PlanExecutionConfig planExecutionConfig)
          Creates a BuildContext for each not built or failed Job in the Chain that was partially executed or can be restarted
 java.util.Map<ImmutableChainStage,java.util.Map<ImmutableJob,BuildContext>> createBuildContextsForJobs(ImmutableChain chain, BuildContext parentBuildContext)
          Creates a BuildContext for each Job in the Chain
 void updateBuildContextWithChanges(BuildContext contextToUpdate, BuildChanges newBuildChanges)
          Updates the build context with build changes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildContextFactoryImpl

public BuildContextFactoryImpl(ArtifactSubscriptionManager artifactSubscriptionManager,
                               VariableDefinitionManager variableDefinitionManager,
                               TaskManager taskManager,
                               TestQuarantineManager testQuarantineManager,
                               AdministrationConfigurationManager administrationConfigurationManager,
                               BranchIntegrationService branchIntegrationService,
                               FeatureManager featureManager)
Method Detail

createBuildContextsForJobs

@NotNull
public java.util.Map<ImmutableChainStage,java.util.Map<ImmutableJob,BuildContext>> createBuildContextsForJobs(@NotNull
                                                                                                                      ImmutableChain chain,
                                                                                                                      @NotNull
                                                                                                                      BuildContext parentBuildContext)
Description copied from interface: BuildContextFactory
Creates a BuildContext for each Job in the Chain

Specified by:
createBuildContextsForJobs in interface BuildContextFactory
parentBuildContext - - buildContext of the parent chain execution
Returns:
map of Job PlanKeys to their BuildContext

updateBuildContextWithChanges

public void updateBuildContextWithChanges(BuildContext contextToUpdate,
                                          BuildChanges newBuildChanges)
Description copied from interface: BuildContextFactory
Updates the build context with build changes

Specified by:
updateBuildContextWithChanges in interface BuildContextFactory

createBuildContextsForContinuedBuild

@NotNull
public java.util.Collection<BuildContext> createBuildContextsForContinuedBuild(@NotNull
                                                                                       ImmutableChain chain,
                                                                                       @NotNull
                                                                                       ChainResultsSummary chainResultsSummary,
                                                                                       @NotNull
                                                                                       BuildContext parentBuildContext,
                                                                                       @NotNull
                                                                                       PlanExecutionConfig planExecutionConfig)
Description copied from interface: BuildContextFactory
Creates a BuildContext for each not built or failed Job in the Chain that was partially executed or can be restarted

Specified by:
createBuildContextsForContinuedBuild in interface BuildContextFactory
chainResultsSummary - - existing ChainResultsSummary for build to continue/restart
parentBuildContext - - Chain BuildContext
planExecutionConfig - - controls build continuation or restart
Returns:
collection of BuildContext to execute

cloneBuildRepositoryChanges

@NotNull
public BuildRepositoryChanges cloneBuildRepositoryChanges(@NotNull
                                                                  BuildRepositoryChanges buildRepositoryChanges)
Description copied from interface: BuildContextFactory
This is not a real clone() operation

Specified by:
cloneBuildRepositoryChanges in interface BuildContextFactory
Returns:
cloned BuildRepositoryChanges

buildChangesUnion

@NotNull
public BuildRepositoryChanges buildChangesUnion(@NotNull
                                                        BuildRepositoryChanges a,
                                                        @NotNull
                                                        BuildRepositoryChanges b)
Specified by:
buildChangesUnion in interface BuildContextFactory


Copyright © 2012 Atlassian. All Rights Reserved.