Interface EnvironmentDependencyService
- All Known Implementing Classes:
EnvironmentDependencyServiceImpl
@Internal
public interface EnvironmentDependencyService
Keeps track of dependencies between
Triggerable
that are maintained as TriggerDefinition
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependencies
(@NotNull Triggerable dependent, long triggerId, @NotNull Set<TriggerableInternalKey> triggeringPlans) Adds dependencies from triggeringPlans to aTriggerable
@NotNull Set<TriggerableInternalKey>
getEnvironmentsToTrigger
(@NotNull TriggerableInternalKey planKey) void
removeDependencies
(@NotNull Triggerable dependent, long triggerId) Remove all the dependencies related toTriggerDefinition
void
replaceDependencies
(@NotNull Triggerable dependent, long triggerId, @NotNull Set<TriggerableInternalKey> triggeringPlans) Removes all existing dependencies and adds new.
-
Method Details
-
addDependencies
void addDependencies(@NotNull @NotNull Triggerable dependent, long triggerId, @NotNull @NotNull Set<TriggerableInternalKey> triggeringPlans) Adds dependencies from triggeringPlans to aTriggerable
- Parameters:
dependent
-Triggerable
to be triggeredtriggerId
- id of aTriggerDefinition
dependencies come fromtriggeringPlans
- plans which trigger dependentTriggerable
on successful completion
-
removeDependencies
Remove all the dependencies related toTriggerDefinition
- Parameters:
dependent
-Triggerable
to be triggeredtriggerId
- id of aTriggerDefinition
dependencies come from
-
replaceDependencies
void replaceDependencies(@NotNull @NotNull Triggerable dependent, long triggerId, @NotNull @NotNull Set<TriggerableInternalKey> triggeringPlans) Removes all existing dependencies and adds new. -
getEnvironmentsToTrigger
@NotNull @NotNull Set<TriggerableInternalKey> getEnvironmentsToTrigger(@NotNull @NotNull TriggerableInternalKey planKey) - Returns:
- all
Triggerable
that should be started on successful completion of a Plan
-