com.atlassian.bamboo.plan
Class PlanExecutionConfigImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.PlanExecutionConfigImpl
All Implemented Interfaces:
PlanExecutionConfig

public class PlanExecutionConfigImpl
extends Object
implements PlanExecutionConfig


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.plan.PlanExecutionConfig
PlanExecutionConfig.PlanExecutionType
 
Constructor Summary
PlanExecutionConfigImpl(PlanExecutionConfig.PlanExecutionType planExecutionType)
           
 
Method Summary
 PlanExecutionConfig build()
           
 PlanExecutionConfig.PlanExecutionType getPlanExecutionType()
          type of resumed plan execution
 PlanResultKey getResultToRerun()
          PlanResultKey of build to start again
 Set<ImmutableChainStage> getStagesToExecute()
           
 StageIdentifier getStartStage()
          Stage where plan execution should be resumed
 boolean isBranchMergePushOverride()
          If branch merging is enabled, if we override the push
 boolean isGoingToStopAtManualStage()
          true if the first stage not scheduled for execution was manual
 boolean isScheduledForExecution(String name)
           
 void setBranchMergePushOverride(boolean branchMergePushOverride)
           
 PlanExecutionConfig setChain(ImmutableChain chain)
           
 PlanExecutionConfig setChainResultSummary(ChainResultsSummary chainResultsSummary)
           
 PlanExecutionConfig setExecuteAllStages()
           
 PlanExecutionConfig setLatestManualStageForAutomaticExecution(String latestManualStageForAutomaticExecution)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanExecutionConfigImpl

public PlanExecutionConfigImpl(PlanExecutionConfig.PlanExecutionType planExecutionType)
Method Detail

setChain

public PlanExecutionConfig setChain(ImmutableChain chain)
Specified by:
setChain in interface PlanExecutionConfig

setChainResultSummary

public PlanExecutionConfig setChainResultSummary(ChainResultsSummary chainResultsSummary)
Specified by:
setChainResultSummary in interface PlanExecutionConfig

setLatestManualStageForAutomaticExecution

public PlanExecutionConfig setLatestManualStageForAutomaticExecution(@Nullable
                                                                     String latestManualStageForAutomaticExecution)
Specified by:
setLatestManualStageForAutomaticExecution in interface PlanExecutionConfig

setExecuteAllStages

public PlanExecutionConfig setExecuteAllStages()
Specified by:
setExecuteAllStages in interface PlanExecutionConfig

getStartStage

@NotNull
public StageIdentifier getStartStage()
Description copied from interface: PlanExecutionConfig
Stage where plan execution should be resumed

Specified by:
getStartStage in interface PlanExecutionConfig
Returns:
null iff restarting chain that failed after all the Jobs run successfully

getPlanExecutionType

public PlanExecutionConfig.PlanExecutionType getPlanExecutionType()
Description copied from interface: PlanExecutionConfig
type of resumed plan execution

Specified by:
getPlanExecutionType in interface PlanExecutionConfig
Returns:

isScheduledForExecution

public boolean isScheduledForExecution(String name)
Specified by:
isScheduledForExecution in interface PlanExecutionConfig

getResultToRerun

@NotNull
public PlanResultKey getResultToRerun()
Description copied from interface: PlanExecutionConfig
PlanResultKey of build to start again

Specified by:
getResultToRerun in interface PlanExecutionConfig
Returns:

build

@NotNull
public PlanExecutionConfig build()
Specified by:
build in interface PlanExecutionConfig

getStagesToExecute

public Set<ImmutableChainStage> getStagesToExecute()
Specified by:
getStagesToExecute in interface PlanExecutionConfig

isGoingToStopAtManualStage

public boolean isGoingToStopAtManualStage()
Description copied from interface: PlanExecutionConfig
true if the first stage not scheduled for execution was manual

Specified by:
isGoingToStopAtManualStage in interface PlanExecutionConfig
Returns:

isBranchMergePushOverride

public boolean isBranchMergePushOverride()
Description copied from interface: PlanExecutionConfig
If branch merging is enabled, if we override the push

Specified by:
isBranchMergePushOverride in interface PlanExecutionConfig
Returns:

setBranchMergePushOverride

public void setBranchMergePushOverride(boolean branchMergePushOverride)
Specified by:
setBranchMergePushOverride in interface PlanExecutionConfig


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.