Package com.atlassian.bamboo.plan
Class AbstractPlanExecutionPermitter
java.lang.Object
com.atlassian.bamboo.plan.AbstractPlanExecutionPermitter
- All Implemented Interfaces:
PlanExecutionPermitter
- Direct Known Subclasses:
BranchMetadataBuildPermitter,ExecutionLimitsServiceImpl,PlanExecutionConcurrencyServiceImpl,PluggablePlanExecutionPermitter,UniqueRunPerKeyPlanExecutionPermitter
@Internal
public abstract class AbstractPlanExecutionPermitter
extends Object
implements PlanExecutionPermitter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPermittedToExecute(@NotNull ImmutableChain chain, @Nullable PlanResultKey resultKey, @NotNull ErrorCollection errorCollection) Checks a condition in order to determine if the plan can be executed.booleanisPermittedToExecute(@NotNull ImmutableChain chain, @NotNull ErrorCollection errorCollection) Checks a condition in order to determine if the plan can be executed.protected abstract booleanisPermittedToExecuteImpl(@NotNull ImmutableChain chain, @Nullable PlanResultKey resultKey, @NotNull ErrorCollection errorCollection) voidsetChainedExecutionPermitter(PlanExecutionPermitter chainedExecutionPermitter)
-
Constructor Details
-
AbstractPlanExecutionPermitter
public AbstractPlanExecutionPermitter()
-
-
Method Details
-
isPermittedToExecute
public boolean isPermittedToExecute(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull ErrorCollection errorCollection) Description copied from interface:PlanExecutionPermitterChecks a condition in order to determine if the plan can be executed. Note: usePlanExecutionPermitter.isPermittedToExecute(ImmutableChain, PlanResultKey, ErrorCollection)when build is restarted/continued.- Specified by:
isPermittedToExecutein interfacePlanExecutionPermitter- Parameters:
chain-errorCollection-- Returns:
- allowedToExecute
-
isPermittedToExecute
public boolean isPermittedToExecute(@NotNull @NotNull ImmutableChain chain, @Nullable @Nullable PlanResultKey resultKey, @NotNull @NotNull ErrorCollection errorCollection) Description copied from interface:PlanExecutionPermitterChecks a condition in order to determine if the plan can be executed.- Specified by:
isPermittedToExecutein interfacePlanExecutionPermitter- Parameters:
chain-resultKey- key of a result, if it's restarted or continued builderrorCollection-- Returns:
- allowedToExecute
-
setChainedExecutionPermitter
- Specified by:
setChainedExecutionPermitterin interfacePlanExecutionPermitter
-
isPermittedToExecuteImpl
protected abstract boolean isPermittedToExecuteImpl(@NotNull @NotNull ImmutableChain chain, @Nullable @Nullable PlanResultKey resultKey, @NotNull @NotNull ErrorCollection errorCollection)
-