Interface EnvironmentDependencyService
-
- All Known Implementing Classes:
EnvironmentDependencyServiceImpl
@Internal public interface EnvironmentDependencyService
Keeps track of dependencies betweenTriggerable
that are maintained asTriggerDefinition
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
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
void removeDependencies(@NotNull @NotNull Triggerable dependent, long triggerId)
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
-
-