|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PlanExecutionManager
Generic Execution Manager for Plan's
| Method Summary | |
|---|---|
java.util.List<CurrentlyBuilding> |
getCurrentlyBuildingForPlan(PlanKey planKey)
Returns all for specified PlanKey
In case plan is a Chain instance, all currently running jobs will be returned |
java.util.List<CurrentlyBuilding> |
getCurrentlyBuildingForPlanResult(PlanResultKey planKey)
Returns all CurrentlyBuilding for specified PlanResultKey
In case plan is a Chain instance, all currently running jobs will be returned, however, chain itself will be not included in the list
(effectively CurrentlyBuilding for all chain's children jobs will be returned) |
boolean |
isBuildingAllowed(Plan plan)
Checks if a particular build is allowed to be built. |
boolean |
isBusy(PlanKey planKey)
Tests if the Plan represented by PlanKey is busy starting |
ExecutionRequestResult |
start(Plan plan,
BuildDetectionAction buildDetectionAction,
AcquisitionPolicy acquisitionPolicy)
Execute the Plan with the provided BuildDetectionAction and AcquisitionPolicy
Calls to this method will acquire a lock according to the AcquisitionPolicy on a per Plan granularity |
ExecutionRequestResult |
startManualExecution(Plan plan,
com.atlassian.user.User user)
Attempts to start a manual execution of the given Plan |
ExecutionRequestResult |
startManualExecution(Plan Plan,
com.atlassian.user.User user,
java.util.Map<java.lang.String,java.lang.String> params)
Attempts to start a manual execution of the given Plan |
void |
stopPlan(PlanKey planKey,
boolean abandonResult,
java.lang.String userName)
|
void |
stopPlan(PlanResultKey planResultKey,
boolean abandonResult,
java.lang.String userName)
|
| Methods inherited from interface com.atlassian.bamboo.plan.ExecutionStatusProvider |
|---|
getExecutionStatus, getExecutionStatus, getJobExecution, numberOfExecutions |
| Method Detail |
|---|
boolean isBusy(@NotNull
PlanKey planKey)
Plan represented by PlanKey is busy starting
planKey -
@NotNull
ExecutionRequestResult start(@NotNull
Plan plan,
@NotNull
BuildDetectionAction buildDetectionAction,
@NotNull
AcquisitionPolicy acquisitionPolicy)
Plan with the provided BuildDetectionAction and AcquisitionPolicy
Calls to this method will acquire a lock according to the AcquisitionPolicy on a per Plan granularity
plan - buildDetectionAction - acquisitionPolicy -
IncorrectPlanTypeException - if the Plan could not be processed
@NotNull
ExecutionRequestResult startManualExecution(@NotNull
Plan plan,
@NotNull
com.atlassian.user.User user)
Plan
plan - user -
@NotNull
ExecutionRequestResult startManualExecution(@NotNull
Plan Plan,
@NotNull
com.atlassian.user.User user,
@NotNull
java.util.Map<java.lang.String,java.lang.String> params)
Plan
Plan - user - params -
boolean isBuildingAllowed(@NotNull
Plan plan)
plan -
java.util.List<CurrentlyBuilding> getCurrentlyBuildingForPlan(PlanKey planKey)
PlanKey
In case plan is a Chain instance, all currently running jobs will be returned
planKey -
@NotNull java.util.List<CurrentlyBuilding> getCurrentlyBuildingForPlanResult(PlanResultKey planKey)
CurrentlyBuilding for specified PlanResultKey
In case plan is a Chain instance, all currently running jobs will be returned, however, chain itself will be not included in the list
(effectively CurrentlyBuilding for all chain's children jobs will be returned)
planKey -
void stopPlan(@NotNull
PlanResultKey planResultKey,
boolean abandonResult,
java.lang.String userName)
void stopPlan(@NotNull
PlanKey planKey,
boolean abandonResult,
java.lang.String userName)
throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||