|
||||||||||
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 | |
---|---|
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 |
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 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 |
ChainExecutionRequestResult |
start(ImmutableChain chain,
ConditionalBuildDetectionAction 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 |
Method Detail |
---|
@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)
Chain
represented by PlanKey
planKey
- boolean isActive(@NotNull PlanKey planKey)
Chain
is "active" ie being queued, or building
planKey
-
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 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 |