com.atlassian.bamboo.plan
Interface PlanExecutionPermitter

All Known Implementing Classes:
AbstractPlanExecutionPermitter, ExecutionLimitsServiceImpl, PlanExecutionConcurrencyServiceImpl, UniqueRunPerKeyPlanExecutionPermitter

@Internal
public interface PlanExecutionPermitter

Service to check against the chain's ConcurrentBuildConfig


Method Summary
 boolean isPermittedToExecute(ImmutableChain chain, ErrorCollection errorCollection)
          Checks a condition in order to determine if the plan can be executed.
 boolean isPermittedToExecute(ImmutableChain chain, PlanResultKey resultKey, ErrorCollection errorCollection)
          Checks a condition in order to determine if the plan can be executed.
 void setChainedExecutionPermitter(PlanExecutionPermitter chainedExecutionPermitter)
           
 

Method Detail

isPermittedToExecute

boolean isPermittedToExecute(@NotNull
                             ImmutableChain chain,
                             @NotNull
                             ErrorCollection errorCollection)
Checks a condition in order to determine if the plan can be executed. Note: use isPermittedToExecute(ImmutableChain, PlanResultKey, ErrorCollection) when build is restarted/continued.

Parameters:
chain -
errorCollection -
Returns:
allowedToExecute

isPermittedToExecute

boolean isPermittedToExecute(@NotNull
                             ImmutableChain chain,
                             @Nullable
                             PlanResultKey resultKey,
                             @NotNull
                             ErrorCollection errorCollection)
Checks a condition in order to determine if the plan can be executed.

Parameters:
chain -
resultKey - key of a result, if it's restarted or continued build
errorCollection -
Returns:
allowedToExecute

setChainedExecutionPermitter

void setChainedExecutionPermitter(@Nullable
                                  PlanExecutionPermitter chainedExecutionPermitter)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.