Package | Description |
---|---|
com.atlassian.bamboo.plan | |
com.atlassian.bamboo.trigger.dependency |
Modifier and Type | Class and Description |
---|---|
class |
TriggerableInternalKeyImpl
Helper class that carries around Chain/Environment id and lets easily get its instance from correct service.
|
Modifier and Type | Method and Description |
---|---|
static TriggerableInternalKey |
TriggerableInternalKeyImpl.forEnvironmentId(long environmentId) |
static TriggerableInternalKey |
TriggerableInternalKeyImpl.forPlanKey(@NotNull PlanKey planKey) |
static TriggerableInternalKey |
TriggerableInternalKeyImpl.forStageId(@NotNull PlanKey planKey,
long stageId) |
Modifier and Type | Method and Description |
---|---|
<V> V |
PlanExecutionLockServiceImpl.inlineProcessLocks(@NotNull TriggerableInternalKey internalKey,
@NotNull AcquisitionPolicy acquisitionPolicy,
@NotNull Callable<V> callable) |
<V> V |
PlanExecutionLockService.inlineProcessLocks(@NotNull TriggerableInternalKey lockKey,
@NotNull AcquisitionPolicy acquisitionPolicy,
@NotNull Callable<V> callable)
A parallel locking mechanism that allows a backdoor to the standard lock.
|
void |
PlanExecutionLockServiceImpl.interruptLockOwner(@NotNull TriggerableInternalKey internalKey) |
void |
PlanExecutionLockService.interruptLockOwner(@NotNull TriggerableInternalKey lockKey)
Interrupts the owner of the lock represented by
TriggerableInternalKey |
boolean |
PlanExecutionLockServiceImpl.isLocked(@NotNull TriggerableInternalKey internalKey) |
boolean |
PlanExecutionLockService.isLocked(@NotNull TriggerableInternalKey lockKey)
Checks if the given
String has been locked |
<V> V |
PlanExecutionLockServiceImpl.lock(@NotNull TriggerableInternalKey internalKey,
@NotNull AcquisitionPolicy acquisitionPolicy,
@NotNull Callable<V> callable)
Quick note about the implementation
Since the acquisition policy
AcquisitionPolicy.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. |
<V> V |
PlanExecutionLockService.lock(@NotNull TriggerableInternalKey lockKey,
@NotNull AcquisitionPolicy acquisitionPolicy,
@NotNull Callable<V> callable)
Acquires a lock on the given
TriggerableInternalKey then calls the given Callable within the global request lock |
Modifier and Type | Method and Description |
---|---|
@NotNull Set<TriggerableInternalKey> |
EnvironmentDependencyServiceImpl.getEnvironmentsToTrigger(@NotNull TriggerableInternalKey parent) |
@NotNull Set<TriggerableInternalKey> |
EnvironmentDependencyService.getEnvironmentsToTrigger(@NotNull TriggerableInternalKey planKey) |
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences