|
||||||||||
| 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(ImmutableChain chain)
Checks if a particular build is allowed to be built. |
boolean |
isBusy()
|
boolean |
isBusy(PlanKey planKey)
Tests if the Plan represented by PlanKey is busy starting |
ExecutionRequestResult |
start(ImmutableChain chain,
BuildDetectionAction buildDetectionAction,
AcquisitionPolicy acquisitionPolicy)
Execute the ImmutableChain with the provided BuildDetectionAction and AcquisitionPolicy
Calls to this method will acquire a lock according to the AcquisitionPolicy on a per Plan
granularity |
ExecutionRequestResult |
start(ImmutableChain chain,
PlanExecutionConfig planExecutionConfig,
java.lang.String triggerReasonPluginKey,
java.lang.String planTriggerPluginKey,
java.util.Map<java.lang.String,java.lang.String> params,
java.util.Map<java.lang.String,java.lang.String> variables,
AcquisitionPolicy acquisitionPolicy)
Execute the provided Plan with a custom TriggerReason, PlanTrigger, parameters and
variables |
ExecutionRequestResult |
startManualExecution(ImmutableChain chain,
PlanExecutionConfig planExecutionConfig,
com.atlassian.user.User user,
java.util.Map<java.lang.String,java.lang.String> params,
java.util.Map<java.lang.String,java.lang.String> variables)
Attempts to start a manual execution of a given Plan controlled by PlanExecutionConfig
PlanExecutionConfig allows to control manual stages execution as well as enforcing execution of manual stages |
ExecutionRequestResult |
startManualExecution(ImmutableChain chain,
PlanExecutionConfig planExecutionConfig,
com.atlassian.user.User user,
java.lang.String triggerReasonPluginKey,
java.lang.String planTriggerPluginKey,
java.util.Map<java.lang.String,java.lang.String> params,
java.util.Map<java.lang.String,java.lang.String> variables)
Attempts to start a manual execution of a given Plan controlled by PlanExecutionConfig
PlanExecutionConfig allows to control manual stages execution as well as enforcing execution of manual stages |
ExecutionRequestResult |
startManualExecution(ImmutableChain chain,
com.atlassian.user.User user)
Attempts to start a manual execution of the given Plan |
ExecutionRequestResult |
startManualExecution(ImmutableChain chain,
com.atlassian.user.User user,
java.util.Map<java.lang.String,java.lang.String> params,
java.util.Map<java.lang.String,java.lang.String> variables)
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)
|
void |
stopRequest(PlanKey planKey)
Stops a build requests for the given PlanKey |
| Methods inherited from interface com.atlassian.bamboo.plan.ExecutionStatusProvider |
|---|
getExecutionStatus, getExecutionStatus, getJobExecution, numberOfExecutions |
| Method Detail |
|---|
boolean isBusy()
boolean isBusy(@NotNull
PlanKey planKey)
Plan represented by PlanKey is busy starting
planKey -
@NotNull
ExecutionRequestResult start(@NotNull
ImmutableChain chain,
@NotNull
BuildDetectionAction buildDetectionAction,
@NotNull
AcquisitionPolicy acquisitionPolicy)
ImmutableChain with the provided BuildDetectionAction and AcquisitionPolicy
Calls to this method will acquire a lock according to the AcquisitionPolicy on a per Plan
granularity
chain - buildDetectionAction - acquisitionPolicy -
IncorrectPlanTypeException - if the Plan could not be processed
@NotNull
ExecutionRequestResult start(@NotNull
ImmutableChain chain,
@Nullable
PlanExecutionConfig planExecutionConfig,
@NotNull
java.lang.String triggerReasonPluginKey,
@NotNull
java.lang.String planTriggerPluginKey,
@NotNull
java.util.Map<java.lang.String,java.lang.String> params,
@NotNull
java.util.Map<java.lang.String,java.lang.String> variables,
@NotNull
AcquisitionPolicy acquisitionPolicy)
Plan with a custom TriggerReason, PlanTrigger, parameters and
variables
chain - planExecutionConfig - extended configuration for executiontriggerReasonPluginKey - full plugin key for a TriggerReasonplanTriggerPluginKey - full plugin key for a PlanTriggerparams - custom paramsvariables - overriden variablesacquisitionPolicy - to aquire the lock
IncorrectPlanTypeException - if the Plan could not be processed
@NotNull
ExecutionRequestResult startManualExecution(@NotNull
ImmutableChain chain,
@NotNull
com.atlassian.user.User user)
Plan
chain - user -
@NotNull
ExecutionRequestResult startManualExecution(@NotNull
ImmutableChain chain,
@NotNull
com.atlassian.user.User user,
@NotNull
java.util.Map<java.lang.String,java.lang.String> params,
@NotNull
java.util.Map<java.lang.String,java.lang.String> variables)
Plan
chain - user - params - - additional execution parameters set in code to parametrized build - not exposed to uservariables - - user defined variables that could be parametrized in manual execution - contain only values
changed by user in UI
@NotNull
ExecutionRequestResult startManualExecution(@NotNull
ImmutableChain chain,
PlanExecutionConfig planExecutionConfig,
@NotNull
com.atlassian.user.User user,
@NotNull
java.util.Map<java.lang.String,java.lang.String> params,
@NotNull
java.util.Map<java.lang.String,java.lang.String> variables)
Plan controlled by PlanExecutionConfig
PlanExecutionConfig allows to control manual stages execution as well as enforcing execution of manual stages
chain - planExecutionConfig - user - params - variables -
@NotNull
ExecutionRequestResult startManualExecution(@NotNull
ImmutableChain chain,
PlanExecutionConfig planExecutionConfig,
@NotNull
com.atlassian.user.User user,
@NotNull
java.lang.String triggerReasonPluginKey,
@NotNull
java.lang.String planTriggerPluginKey,
@NotNull
java.util.Map<java.lang.String,java.lang.String> params,
@NotNull
java.util.Map<java.lang.String,java.lang.String> variables)
Plan controlled by PlanExecutionConfig
PlanExecutionConfig allows to control manual stages execution as well as enforcing execution of manual stages
chain - planExecutionConfig - user - triggerReasonPluginKey - planTriggerPluginKey - params - variables -
boolean isBuildingAllowed(@NotNull
ImmutableChain chain)
chain -
@NotNull 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
void stopRequest(@NotNull
PlanKey planKey)
PlanKey
planKey -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||