Class DefaultDependencyBlockingManager
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.trigger.DefaultDependencyBlockingManager
-
- All Implemented Interfaces:
DependencyBlockingManager
public class DefaultDependencyBlockingManager extends Object implements DependencyBlockingManager
-
-
Constructor Summary
Constructors Constructor Description DefaultDependencyBlockingManager(DependencyTreeBuilder dependencyTreeBuilder, ImmutablePlanCacheService immutablePlanCacheService, ChangeDetectionManager changeDetectionManager, PlanExecutionManager planExecutionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, BuildNumberGeneratorService buildNumberGenerator, ChainExecutionManager chainExecutionManager, BuildContextBuilderFactory buildContextBuilderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBlockedFromBuilding(PlanKey planKey)
Checks if build should be blocked, and executes any parent builds if required.boolean
isBlockedFromBuilding(PlanKey planKey, @Nullable Set<? extends ImmutablePlan> plansBeingTriggered)
Checks if build should be blocked, and executes any parent builds if required.
-
-
-
Constructor Detail
-
DefaultDependencyBlockingManager
public DefaultDependencyBlockingManager(DependencyTreeBuilder dependencyTreeBuilder, ImmutablePlanCacheService immutablePlanCacheService, ChangeDetectionManager changeDetectionManager, PlanExecutionManager planExecutionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, BuildNumberGeneratorService buildNumberGenerator, ChainExecutionManager chainExecutionManager, BuildContextBuilderFactory buildContextBuilderFactory)
-
-
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 interfaceDependencyBlockingManager
- Returns:
- false if build has not been blocked, or if blocking is disabled. Otherwise true.
-
isBlockedFromBuilding
public boolean isBlockedFromBuilding(PlanKey planKey, @Nullable @Nullable 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 interfaceDependencyBlockingManager
- Returns:
- false if build has not been blocked, or if blocking is disabled. Otherwise true.
-
-