public class EnvironmentDependencyServiceImpl extends Object implements EnvironmentDependencyService
Constructor and Description |
---|
EnvironmentDependencyServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addDependencies(Triggerable dependent,
long triggerId,
Set<TriggerableInternalKey> parents)
Adds dependencies from triggeringPlans to a
Triggerable |
Set<TriggerableInternalKey> |
getEnvironmentsToTrigger(TriggerableInternalKey parent) |
void |
removeDependencies(Triggerable dependent,
long triggerId)
Remove all the dependencies related to
TriggerDefinition |
void |
replaceDependencies(Triggerable dependent,
long triggerId,
Set<TriggerableInternalKey> parents)
Removes all existing dependencies and adds new.
|
public void replaceDependencies(@NotNull Triggerable dependent, long triggerId, @NotNull Set<TriggerableInternalKey> parents)
EnvironmentDependencyService
replaceDependencies
in interface EnvironmentDependencyService
public void addDependencies(@NotNull Triggerable dependent, long triggerId, @NotNull Set<TriggerableInternalKey> parents)
EnvironmentDependencyService
Triggerable
addDependencies
in interface EnvironmentDependencyService
dependent
- Triggerable
to be triggeredtriggerId
- id of a TriggerDefinition
dependencies come fromparents
- plans which trigger dependent Triggerable
on successful completionpublic void removeDependencies(@NotNull Triggerable dependent, long triggerId)
EnvironmentDependencyService
TriggerDefinition
removeDependencies
in interface EnvironmentDependencyService
dependent
- Triggerable
to be triggeredtriggerId
- id of a TriggerDefinition
dependencies come from@NotNull public Set<TriggerableInternalKey> getEnvironmentsToTrigger(@NotNull TriggerableInternalKey parent)
getEnvironmentsToTrigger
in interface EnvironmentDependencyService
Triggerable
that should be started on successful completion of a PlanCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.