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, ResultsSummaryManager resultsSummaryManager, 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)
          Deprecated. 
 java.util.Map<ImmutableChainStage,java.util.Map<ImmutableJob,BuildContext>> createBuildContextsForJobs(ImmutableChain chain, BuildContext parentBuildContext)
          Creates a BuildContext for each Job in the Chain
 java.util.Collection<BuildContext> createBuildContextsForRestartedOrRerunBuild(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 is restarted for example with "re-run this build" action or with "continue manual stage" action, or "re-run failed jobs" action, etc
 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,
                               ResultsSummaryManager resultsSummaryManager,
                               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

@Deprecated
@NotNull
public java.util.Collection<BuildContext> createBuildContextsForContinuedBuild(@NotNull
                                                                                                  ImmutableChain chain,
                                                                                                  @NotNull
                                                                                                  ChainResultsSummary chainResultsSummary,
                                                                                                  @NotNull
                                                                                                  BuildContext parentBuildContext,
                                                                                                  @NotNull
                                                                                                  PlanExecutionConfig planExecutionConfig)
Deprecated. 

Description copied from interface: BuildContextFactory
Deprecated since 4.3 - use createBuildContextForRestartedOrRerunBuild

Specified by:
createBuildContextsForContinuedBuild in interface BuildContextFactory

createBuildContextsForRestartedOrRerunBuild

@NotNull
public java.util.Collection<BuildContext> createBuildContextsForRestartedOrRerunBuild(@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 is restarted for example with "re-run this build" action or with "continue manual stage" action, or "re-run failed jobs" action, etc

Specified by:
createBuildContextsForRestartedOrRerunBuild in interface BuildContextFactory
chainResultsSummary - - existing ChainResultsSummary for build to continue/restart/rerun
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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.