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(Plan plan, ErrorCollection errorCollection)
          Checks the given Plans ConcurrentBuildConfigForPlan and the number of concurrently running Plans to determine if the plan can be executed
protected abstract  boolean isPermittedToExecuteImpl(Plan plan, 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
                                    Plan plan,
                                    @NotNull
                                    ErrorCollection errorCollection)
Description copied from interface: PlanExecutionPermitter
Checks the given Plans ConcurrentBuildConfigForPlan and the number of concurrently running Plans 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
                                                    Plan plan,
                                                    @NotNull
                                                    ErrorCollection errorCollection)


Copyright © 2011 Atlassian. All Rights Reserved.