|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use AcquisitionPolicy | |
---|---|
com.atlassian.bamboo.plan | |
com.atlassian.bamboo.util |
Uses of AcquisitionPolicy in com.atlassian.bamboo.plan |
---|
Methods in com.atlassian.bamboo.plan with parameters of type AcquisitionPolicy | ||
---|---|---|
|
PlanExecutionLockService.lock(PlanKey planKey,
AcquisitionPolicy acquisitionPolicy,
java.util.concurrent.Callable<V> callable)
Acquires a lock on the given PlanKey then calls the given Callable within the global request lock |
|
|
PlanExecutionLockServiceImpl.lock(PlanKey planKey,
AcquisitionPolicy acquisitionPolicy,
java.util.concurrent.Callable<V> callable)
Quick note about the implementation Since the acquisition policy WAIT can block for an indefinite amount of time
we acquire this lock before trying to take the global execution lock otherwise callers to PlanExecutionLockServiceImpl.runWhenNoExecutionRequestsAreBeingMade(Callable)
in the worst case will wait indefinitely. |
|
ExecutionRequestResult |
PlanExecutionManager.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 |
PlanExecutionManagerImpl.start(ImmutableChain chain,
BuildDetectionAction buildDetectionAction,
AcquisitionPolicy acquisitionPolicy)
|
|
ExecutionRequestResult |
PlanExecutionManager.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 |
PlanExecutionManagerImpl.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)
|
|
java.util.concurrent.Future<ExecutionRequestResult> |
NonBlockingPlanExecutionService.tryToStart(ImmutableChain chain,
BuildDetectionAction buildDetectionAction,
AcquisitionPolicy acquisitionPolicy)
Submits a background task to run PlanExecutionManager.start(com.atlassian.bamboo.plan.cache.ImmutableChain, com.atlassian.bamboo.build.BuildDetectionAction, com.atlassian.bamboo.util.AcquisitionPolicy) . |
|
java.util.concurrent.Future<ExecutionRequestResult> |
NonBlockingPlanExecutionServiceImpl.tryToStart(ImmutableChain chain,
BuildDetectionAction buildDetectionAction,
AcquisitionPolicy acquisitionPolicy)
|
Uses of AcquisitionPolicy in com.atlassian.bamboo.util |
---|
Fields in com.atlassian.bamboo.util declared as AcquisitionPolicy | |
---|---|
static AcquisitionPolicy |
AcquisitionPolicy.IMMEDIATE
Attempts to acquire the lock immediately. |
static AcquisitionPolicy |
AcquisitionPolicy.WAIT
Waits until the Lock has been acquired |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |