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