Class EnvironmentDependencyServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.trigger.dependency.EnvironmentDependencyServiceImpl
-
- All Implemented Interfaces:
EnvironmentDependencyService
@Component public class EnvironmentDependencyServiceImpl extends Object implements EnvironmentDependencyService
-
-
Constructor Summary
Constructors Constructor Description EnvironmentDependencyServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDependencies(@NotNull Triggerable dependent, long triggerId, @NotNull Set<TriggerableInternalKey> parents)
Adds dependencies from triggeringPlans to aTriggerable
@NotNull Set<TriggerableInternalKey>
getEnvironmentsToTrigger(@NotNull TriggerableInternalKey parent)
void
removeDependencies(@NotNull Triggerable dependent, long triggerId)
Remove all the dependencies related toTriggerDefinition
void
replaceDependencies(@NotNull Triggerable dependent, long triggerId, @NotNull Set<TriggerableInternalKey> parents)
Removes all existing dependencies and adds new.
-
-
-
Method Detail
-
replaceDependencies
public void replaceDependencies(@NotNull @NotNull Triggerable dependent, long triggerId, @NotNull @NotNull Set<TriggerableInternalKey> parents)
Description copied from interface:EnvironmentDependencyService
Removes all existing dependencies and adds new.- Specified by:
replaceDependencies
in interfaceEnvironmentDependencyService
-
addDependencies
public void addDependencies(@NotNull @NotNull Triggerable dependent, long triggerId, @NotNull @NotNull Set<TriggerableInternalKey> parents)
Description copied from interface:EnvironmentDependencyService
Adds dependencies from triggeringPlans to aTriggerable
- Specified by:
addDependencies
in interfaceEnvironmentDependencyService
- Parameters:
dependent
-Triggerable
to be triggeredtriggerId
- id of aTriggerDefinition
dependencies come fromparents
- plans which trigger dependentTriggerable
on successful completion
-
removeDependencies
public void removeDependencies(@NotNull @NotNull Triggerable dependent, long triggerId)
Description copied from interface:EnvironmentDependencyService
Remove all the dependencies related toTriggerDefinition
- Specified by:
removeDependencies
in interfaceEnvironmentDependencyService
- Parameters:
dependent
-Triggerable
to be triggeredtriggerId
- id of aTriggerDefinition
dependencies come from
-
getEnvironmentsToTrigger
@NotNull public @NotNull Set<TriggerableInternalKey> getEnvironmentsToTrigger(@NotNull @NotNull TriggerableInternalKey parent)
- Specified by:
getEnvironmentsToTrigger
in interfaceEnvironmentDependencyService
- Returns:
- all
Triggerable
that should be started on successful completion of a Plan
-
-