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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isPermittedToExecute
(@NotNull ImmutableChain chain, @NotNull ErrorCollection errorCollection) Checks a condition in order to determine if the plan can be executed.boolean
isPermittedToExecute
(@NotNull ImmutableChain chain, @Nullable PlanResultKey resultKey, @NotNull ErrorCollection errorCollection) Checks a condition in order to determine if the plan can be executed.protected abstract boolean
isPermittedToExecuteImpl
(@NotNull ImmutableChain chain, @Nullable PlanResultKey resultKey, @NotNull ErrorCollection errorCollection) void
setChainedExecutionPermitter
(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:PlanExecutionPermitter
Checks 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:
isPermittedToExecute
in interfacePlanExecutionPermitter
- Returns:
- allowedToExecute
-
isPermittedToExecute
public boolean isPermittedToExecute(@NotNull @NotNull ImmutableChain chain, @Nullable @Nullable PlanResultKey resultKey, @NotNull @NotNull ErrorCollection errorCollection) Description copied from interface:PlanExecutionPermitter
Checks a condition in order to determine if the plan can be executed.- Specified by:
isPermittedToExecute
in interfacePlanExecutionPermitter
resultKey
- key of a result, if it's restarted or continued build- Returns:
- allowedToExecute
-
setChainedExecutionPermitter
- Specified by:
setChainedExecutionPermitter
in interfacePlanExecutionPermitter
-
isPermittedToExecuteImpl
protected abstract boolean isPermittedToExecuteImpl(@NotNull @NotNull ImmutableChain chain, @Nullable @Nullable PlanResultKey resultKey, @NotNull @NotNull ErrorCollection errorCollection)
-