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(PlanKey planKey) |
static TriggerableInternalKey |
TriggerableInternalKeyImpl.forStageId(PlanKey planKey,
long stageId) |
Modifier and Type | Method and Description |
---|---|
<V> V |
PlanExecutionLockServiceImpl.inlineProcessLocks(TriggerableInternalKey internalKey,
AcquisitionPolicy acquisitionPolicy,
Callable<V> callable) |
<V> V |
PlanExecutionLockService.inlineProcessLocks(TriggerableInternalKey lockKey,
AcquisitionPolicy acquisitionPolicy,
Callable<V> callable)
A parallel locking mechanism that allows a backdoor to the standard lock.
|
void |
PlanExecutionLockServiceImpl.interruptLockOwner(TriggerableInternalKey internalKey) |
void |
PlanExecutionLockService.interruptLockOwner(TriggerableInternalKey lockKey)
Interrupts the owner of the lock represented by
TriggerableInternalKey |
boolean |
PlanExecutionLockServiceImpl.isLocked(TriggerableInternalKey internalKey) |
boolean |
PlanExecutionLockService.isLocked(TriggerableInternalKey lockKey)
Checks if the given
String has been locked |
<V> V |
PlanExecutionLockServiceImpl.lock(TriggerableInternalKey internalKey,
AcquisitionPolicy acquisitionPolicy,
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(TriggerableInternalKey lockKey,
AcquisitionPolicy acquisitionPolicy,
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 |
---|---|
Set<TriggerableInternalKey> |
EnvironmentDependencyService.getEnvironmentsToTrigger(TriggerableInternalKey planKey) |
Set<TriggerableInternalKey> |
EnvironmentDependencyServiceImpl.getEnvironmentsToTrigger(TriggerableInternalKey parent) |
Modifier and Type | Method and Description |
---|---|
Set<TriggerableInternalKey> |
EnvironmentDependencyService.getEnvironmentsToTrigger(TriggerableInternalKey planKey) |
Set<TriggerableInternalKey> |
EnvironmentDependencyServiceImpl.getEnvironmentsToTrigger(TriggerableInternalKey parent) |
Modifier and Type | Method and Description |
---|---|
void |
EnvironmentDependencyService.addDependencies(Triggerable dependent,
long triggerId,
Set<TriggerableInternalKey> triggeringPlans)
Adds dependencies from triggeringPlans to a
Triggerable |
void |
EnvironmentDependencyServiceImpl.addDependencies(Triggerable dependent,
long triggerId,
Set<TriggerableInternalKey> parents) |
void |
EnvironmentDependencyService.replaceDependencies(Triggerable dependent,
long triggerId,
Set<TriggerableInternalKey> triggeringPlans)
Removes all existing dependencies and adds new.
|
void |
EnvironmentDependencyServiceImpl.replaceDependencies(Triggerable dependent,
long triggerId,
Set<TriggerableInternalKey> parents) |
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.