com.atlassian.bamboo.v2.build.trigger
Class DefaultDependencyBlockingManager

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.trigger.DefaultDependencyBlockingManager
All Implemented Interfaces:
DependencyBlockingManager

public class DefaultDependencyBlockingManager
extends java.lang.Object
implements DependencyBlockingManager


Constructor Summary
DefaultDependencyBlockingManager(DependencyTreeBuilder dependencyTreeBuilder, ImmutablePlanCacheService immutablePlanCacheService, ChangeDetectionManager changeDetectionManager, PlanExecutionManager planExecutionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, BuildNumberGeneratorService buildNumberGenerator, ChainExecutionManager chainExecutionManager)
           
 
Method Summary
 boolean isBlockedFromBuilding(PlanKey planKey)
          Checks if build should be blocked, and executes any parent builds if required.
 boolean isBlockedFromBuilding(PlanKey planKey, java.util.Set<? extends ImmutablePlan> plansBeingTriggered)
          Checks if build should be blocked, and executes any parent builds if required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDependencyBlockingManager

public DefaultDependencyBlockingManager(DependencyTreeBuilder dependencyTreeBuilder,
                                        ImmutablePlanCacheService immutablePlanCacheService,
                                        ChangeDetectionManager changeDetectionManager,
                                        PlanExecutionManager planExecutionManager,
                                        TriggerManager triggerManager,
                                        ErrorUpdateHandler errorUpdateHandler,
                                        BuildNumberGeneratorService buildNumberGenerator,
                                        ChainExecutionManager chainExecutionManager)
Method Detail

isBlockedFromBuilding

public boolean isBlockedFromBuilding(PlanKey planKey)
Description copied from interface: DependencyBlockingManager
Checks if build should be blocked, and executes any parent builds if required.

Specified by:
isBlockedFromBuilding in interface DependencyBlockingManager
Returns:
false if build has not been blocked, or if blocking is disabled. Otherwise true.

isBlockedFromBuilding

public boolean isBlockedFromBuilding(PlanKey planKey,
                                     @Nullable
                                     java.util.Set<? extends ImmutablePlan> plansBeingTriggered)
Description copied from interface: DependencyBlockingManager
Checks if build should be blocked, and executes any parent builds if required. Takes into account dependent builds that are siblings of the build and checks if the build should be blocked by them

Specified by:
isBlockedFromBuilding in interface DependencyBlockingManager
Returns:
false if build has not been blocked, or if blocking is disabled. Otherwise true.


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.