public class ChainResultManagerImpl extends Object implements ChainResultManager
Constructor and Description |
---|
ChainResultManagerImpl(BuildResultsSummaryManager buildResultsSummaryManager,
ResultsSummaryManager resultsSummaryManager,
LimitedConcurrencyCaller limitedConcurrencyCaller,
ErrorUpdateHandler errorUpdateHandler,
com.opensymphony.xwork2.TextProvider textProvider,
ArtifactLinkManager artifactLinkManager,
Persister persister) |
Modifier and Type | Method and Description |
---|---|
ChainStateResult |
create(BuildContext chainBuildContext,
Map<ImmutableChainStage,Map<ImmutableJob,BuildContext>> jobBuildContexts,
Collection<? extends ImmutableChainStage> stagesToExecute)
|
long |
getAverageProgressDurationForStages(PlanIdentifier chain,
Collection<ChainStageResult> stages,
int numberOfResults)
Calculates average duration of provided stages execution
|
ChainStateResult |
updateForContinuedBuild(BuildContext chainBuildContext,
Collection<BuildContext> jobBuildContexts,
PlanExecutionConfig planExecutionConfig)
Creates a
ChainState for build already executed and stopped on manual stage of failed |
ChainStateResult |
updateForRerunBuild(BuildContext chainBuildContext,
Collection<BuildContext> jobBuildContexts,
PlanExecutionConfig planExecutionConfig)
Creates a
ChainState for build already executed and being rerun. |
void |
updateStateToInProgress(PlanResultKey chainResultKey,
Date startDate) |
public ChainResultManagerImpl(BuildResultsSummaryManager buildResultsSummaryManager, ResultsSummaryManager resultsSummaryManager, LimitedConcurrencyCaller limitedConcurrencyCaller, ErrorUpdateHandler errorUpdateHandler, com.opensymphony.xwork2.TextProvider textProvider, ArtifactLinkManager artifactLinkManager, Persister persister)
public void updateStateToInProgress(@NotNull PlanResultKey chainResultKey, @NotNull Date startDate)
updateStateToInProgress
in interface ChainResultManager
@NotNull public ChainStateResult create(@NotNull BuildContext chainBuildContext, @NotNull Map<ImmutableChainStage,Map<ImmutableJob,BuildContext>> jobBuildContexts, @NotNull Collection<? extends ImmutableChainStage> stagesToExecute)
ChainResultManager
create
in interface ChainResultManager
@NotNull public ChainStateResult updateForContinuedBuild(@NotNull BuildContext chainBuildContext, @NotNull Collection<BuildContext> jobBuildContexts, @NotNull PlanExecutionConfig planExecutionConfig) throws IOException
ChainResultManager
ChainState
for build already executed and stopped on manual stage of failedupdateForContinuedBuild
in interface ChainResultManager
planExecutionConfig
- - controls the continue/restart executionIOException
@NotNull public ChainStateResult updateForRerunBuild(@NotNull BuildContext chainBuildContext, @NotNull Collection<BuildContext> jobBuildContexts, @NotNull PlanExecutionConfig planExecutionConfig) throws IOException
ChainResultManager
ChainState
for build already executed and being rerun.
This means all succeeding manual stages that won't be executed should have their results wiped out.updateForRerunBuild
in interface ChainResultManager
planExecutionConfig
- - controls the continue/restart executionIOException
public long getAverageProgressDurationForStages(@NotNull PlanIdentifier chain, @NotNull Collection<ChainStageResult> stages, int numberOfResults)
ChainResultManager
getAverageProgressDurationForStages
in interface ChainResultManager
stages
- stages for current execution of plan included in calculationnumberOfResults
- number of previous executions included in calculationsCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.