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 Constructor Description AbstractPlanExecutionPermitter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
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)
-
-
-
Method Detail
-
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
public void setChainedExecutionPermitter(PlanExecutionPermitter chainedExecutionPermitter)
- Specified by:
setChainedExecutionPermitter
in interfacePlanExecutionPermitter
-
isPermittedToExecuteImpl
protected abstract boolean isPermittedToExecuteImpl(@NotNull @NotNull ImmutableChain chain, @Nullable @Nullable PlanResultKey resultKey, @NotNull @NotNull ErrorCollection errorCollection)
-
-