com.atlassian.bamboo.plan
Class AbstractPlanExecutionPermitter

java.lang.Object
  extended by com.atlassian.bamboo.plan.AbstractPlanExecutionPermitter
All Implemented Interfaces:
PlanExecutionPermitter
Direct Known Subclasses:
ExecutionLimitsServiceImpl, PlanExecutionConcurrencyServiceImpl

public abstract class AbstractPlanExecutionPermitter
extends java.lang.Object
implements PlanExecutionPermitter


Constructor Summary
AbstractPlanExecutionPermitter()
           
 
Method Summary
 boolean isPermittedToExecute(ImmutableChain chain, ErrorCollection errorCollection)
          Checks the given Chain's ConcurrentBuildConfig and the number of concurrently running Chains to determine if the plan can be executed
protected abstract  boolean isPermittedToExecuteImpl(ImmutableChain chain, ErrorCollection errorCollection)
           
 void setChainedExecutionPermitter(PlanExecutionPermitter chainedExecutionPermitter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPlanExecutionPermitter

public AbstractPlanExecutionPermitter()
Method Detail

isPermittedToExecute

public boolean isPermittedToExecute(@NotNull
                                    ImmutableChain chain,
                                    @NotNull
                                    ErrorCollection errorCollection)
Description copied from interface: PlanExecutionPermitter
Checks the given Chain's ConcurrentBuildConfig and the number of concurrently running Chains to determine if the plan can be executed

Specified by:
isPermittedToExecute in interface PlanExecutionPermitter
Returns:
allowedToExecute

setChainedExecutionPermitter

public void setChainedExecutionPermitter(PlanExecutionPermitter chainedExecutionPermitter)
Specified by:
setChainedExecutionPermitter in interface PlanExecutionPermitter

isPermittedToExecuteImpl

protected abstract boolean isPermittedToExecuteImpl(@NotNull
                                                    ImmutableChain chain,
                                                    @NotNull
                                                    ErrorCollection errorCollection)


Copyright © 2012 Atlassian. All Rights Reserved.