@Internal public interface ChainExecutionManager extends ChainExecutionAccessor
Chain
Modifier and Type | Method and Description |
---|---|
@NotNull ChainStateCreationRequestResult |
createChainStateNoDetection(@NotNull ImmutableChain chain,
@NotNull UnconditionalBuildDetectionAction buildDetectionAction)
Create a chain state ready for building but dont actually build.
|
@NotNull ChainExecutionRequestResult |
delayedStart(@NotNull ImmutableChain chain,
@NotNull UnconditionalBuildDetectionAction buildDetectionAction,
@NotNull ChainState chainState)
Starts the Chain if it's been created already
|
Set<PlanResultKey> |
restoreState(Set<PlanResultKey> chainResultsToRestore,
Map<PlanResultKey,BuildResultsSummary> jobsInProgress)
Restores state of running chains after server restart.
|
@NotNull ChainExecutionRequestResult |
start(@NotNull ImmutableChain chain,
@NotNull ConditionalBuildDetectionAction buildDetectionAction)
Starts the Chain
|
void |
stop(@NotNull PlanKey planKey)
|
void |
stop(@NotNull PlanResultKey planResultKey)
Stops the executing instance of the
Chain represented by PlanResultKey |
getChainExecution, getExecutingChains, getJobExecution, isActive, isExecuting, isExecuting, logChainExecutionState, numberOfChainsExecuting, numberOfChainsExecuting
@NotNull @NotNull ChainExecutionRequestResult start(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull ConditionalBuildDetectionAction buildDetectionAction)
chain
- buildDetectionAction
- @NotNull @NotNull ChainExecutionRequestResult delayedStart(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull UnconditionalBuildDetectionAction buildDetectionAction, @NotNull @NotNull ChainState chainState)
chain
- buildDetectionAction
- chainState
- if already created@NotNull @NotNull ChainStateCreationRequestResult createChainStateNoDetection(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull UnconditionalBuildDetectionAction buildDetectionAction)
chain
- buildDetectionAction
- void stop(@NotNull @NotNull PlanResultKey planResultKey)
Chain
represented by PlanResultKey
planResultKey
- void stop(@NotNull @NotNull PlanKey planKey)
planKey
- Set<PlanResultKey> restoreState(Set<PlanResultKey> chainResultsToRestore, Map<PlanResultKey,BuildResultsSummary> jobsInProgress)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.