@Internal
public interface ChainExecutionManager
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
|
ChainExecution |
getChainExecution(PlanResultKey planResultKey)
Get the state of the single ChainExecution
|
List<ChainExecution> |
getExecutingChains(PlanKey planKey)
Get the Collection of the state of the ChainExecution or empty collection when no chain is executing
|
BuildExecution |
getJobExecution(PlanResultKey planResultKey)
Get the state of a single Job being executed
|
boolean |
isActive(PlanKey planKey)
Checks if the
Chain is "active" ie being queued, or building |
boolean |
isExecuting(PlanKey planKey)
Checks if the Chain is building
|
boolean |
isExecuting(PlanResultKey planResultKey)
Checks of
BuildResultsSummary represented by PlanResultKey is currently building (ie started on an agent_ |
int |
numberOfChainsExecuting() |
int |
numberOfChainsExecuting(PlanKey planKey)
Determines the number of
ChainExecution s are active for the given PlanKey |
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 |
@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 PlanResultKey
planResultKey
- void stop(@NotNull PlanKey planKey)
planKey
- boolean isActive(@NotNull PlanKey planKey)
Chain
is "active" ie being queued, or buildingplanKey
- boolean isExecuting(@NotNull PlanKey planKey)
planKey
- boolean isExecuting(@NotNull PlanResultKey planResultKey)
BuildResultsSummary
represented by PlanResultKey
is currently building (ie started on an agent_planResultKey
- @NotNull List<ChainExecution> getExecutingChains(@NotNull PlanKey planKey)
planKey
- @Nullable ChainExecution getChainExecution(@NotNull PlanResultKey planResultKey)
planResultKey
- @Nullable BuildExecution getJobExecution(@NotNull PlanResultKey planResultKey)
planResultKey
- int numberOfChainsExecuting(@NotNull PlanKey planKey)
ChainExecution
s are active for the given PlanKey
planKey
- int numberOfChainsExecuting()
Set<PlanResultKey> restoreState(Set<PlanResultKey> chainResultsToRestore)
chainResultsToRestore
- Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.