com.atlassian.bamboo.chains
Interface ChainResultManager

All Known Implementing Classes:
ChainResultManagerImpl

public interface ChainResultManager

Chain specific result manager Not for use by plugin developers


Method Summary
 ChainStateResult create(BuildContext chainBuildContext, java.util.Map<ImmutableChainStage,java.util.Map<ImmutableJob,BuildContext>> jobBuildContexts, java.util.Collection<? extends ImmutableChainStage> stageToExecute)
          Creates a ChainState from Chain and BuildContext and reports any errors
 long getAverageProgressDurationForStages(PlanIdentifier chain, java.util.Collection<ChainStageResult> stageStates, int numberOfResults)
          Calculates average duration of provided stages execution
 ChainStateResult updateForContinuedBuild(BuildContext chainBuildContext, java.util.Collection<BuildContext> jobBuildContexts, PlanExecutionConfig planExecutionConfig)
          Creates a ChainState for build already executed and stopped on manual stage of failed
 void updateStateToInProgress(PlanResultKey chainResultKey, java.util.Date startDate)
           
 

Method Detail

create

@NotNull
ChainStateResult create(@NotNull
                                BuildContext chainBuildContext,
                                @NotNull
                                java.util.Map<ImmutableChainStage,java.util.Map<ImmutableJob,BuildContext>> jobBuildContexts,
                                @NotNull
                                java.util.Collection<? extends ImmutableChainStage> stageToExecute)
Creates a ChainState from Chain and BuildContext and reports any errors

Parameters:
chainBuildContext -
jobBuildContexts -
stageToExecute -
Returns:
chainResultState

updateStateToInProgress

void updateStateToInProgress(@NotNull
                             PlanResultKey chainResultKey,
                             @NotNull
                             java.util.Date startDate)
Parameters:
chainResultKey -
startDate -

updateForContinuedBuild

@NotNull
ChainStateResult updateForContinuedBuild(@NotNull
                                                 BuildContext chainBuildContext,
                                                 @NotNull
                                                 java.util.Collection<BuildContext> jobBuildContexts,
                                                 PlanExecutionConfig planExecutionConfig)
Creates a ChainState for build already executed and stopped on manual stage of failed

Parameters:
chainBuildContext -
jobBuildContexts -
planExecutionConfig - - controls the continue/restart execution
Returns:

getAverageProgressDurationForStages

long getAverageProgressDurationForStages(@NotNull
                                         PlanIdentifier chain,
                                         @NotNull
                                         java.util.Collection<ChainStageResult> stageStates,
                                         int numberOfResults)
Calculates average duration of provided stages execution

Parameters:
chain -
stageStates - stages for current execution of plan included in calculation
numberOfResults - number of previous executions included in calculations
Returns:


Copyright © 2012 Atlassian. All Rights Reserved.