|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChainExecutionManager
Manages the execution of a Chain
Method Summary | |
---|---|
ChainExecution |
getChainExecution(PlanResultKey planResultKey)
Get the state of the single ChainExecution |
java.util.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 represented by PlanKey has any executions |
boolean |
isExecuting(PlanKey planKey)
Checks if the Chain represented by PlanKey has any executions that are currently in progress |
boolean |
isExecuting(PlanResultKey planResultKey)
Checks of the Chain represented by PlanResultKey is executed |
int |
numberOfChainsExecuting()
|
int |
numberOfChainsExecuting(PlanKey planKey)
Determines the number of ChainExecution s are active for the given PlanKey |
ChainExecutionRequestResult |
start(ImmutableChain chain,
BuildDetectionAction buildDetectionAction)
Starts the Chain |
void |
stop(PlanKey planKey)
Stops all executing instances of the Chain represented by PlanKey |
void |
stop(PlanResultKey planResultKey)
Stops the executing instance of the Chain represented by PlanResultKey |
Methods inherited from interface com.atlassian.bamboo.chains.ChainExecutionUpdateManager |
---|
handleJobStarted |
Method Detail |
---|
@NotNull ChainExecutionRequestResult start(@NotNull ImmutableChain chain, @NotNull BuildDetectionAction buildDetectionAction)
chain
- buildDetectionAction
-
void stop(@NotNull PlanResultKey planResultKey)
Chain
represented by PlanResultKey
planResultKey
- void stop(@NotNull PlanKey planKey)
Chain
represented by PlanKey
planKey
- boolean isActive(@NotNull PlanKey planKey)
PlanKey
has any executions
planKey
-
boolean isExecuting(@NotNull PlanKey planKey)
PlanKey
has any executions that are currently in progress
planKey
-
boolean isExecuting(@NotNull PlanResultKey planResultKey)
Chain
represented by PlanResultKey
is executed
planResultKey
-
@NotNull java.util.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |