com.atlassian.bamboo.build.strategy
Interface EnvironmentDependencyService

All Known Implementing Classes:
EnvironmentDependencyServiceImpl

@Internal
public interface EnvironmentDependencyService

Keeps track of dependencies between Triggerable that are maintained as BuildStrategy


Method Summary
 void addDependencies(Triggerable dependent, long triggerId, java.util.Set<PlanKey> triggeringPlans)
          Adds dependencies from triggeringPlans to a Triggerable
 java.util.Set<TriggerableInternalKey> getEnvironmentsToTrigger(PlanKey planKey)
           
 void removeDependencies(Triggerable dependent, long triggerId)
          Remove all the dependencies related to BuildStrategy
 void replaceDependencies(Triggerable dependent, long triggerId, java.util.Set<PlanKey> triggeringPlans)
          Removes all existing dependencies and adds new.
 

Method Detail

addDependencies

void addDependencies(@NotNull
                     Triggerable dependent,
                     long triggerId,
                     @NotNull
                     java.util.Set<PlanKey> triggeringPlans)
Adds dependencies from triggeringPlans to a Triggerable

Parameters:
dependent - Triggerable to be triggered
triggerId - id of a BuildStrategy dependencies come from
triggeringPlans - plans which trigger dependent Triggerable on successful completion

removeDependencies

void removeDependencies(@NotNull
                        Triggerable dependent,
                        long triggerId)
Remove all the dependencies related to BuildStrategy

Parameters:
dependent - Triggerable to be triggered
triggerId - id of a BuildStrategy dependencies come from

replaceDependencies

void replaceDependencies(@NotNull
                         Triggerable dependent,
                         long triggerId,
                         @NotNull
                         java.util.Set<PlanKey> triggeringPlans)
Removes all existing dependencies and adds new.


getEnvironmentsToTrigger

@NotNull
java.util.Set<TriggerableInternalKey> getEnvironmentsToTrigger(@NotNull
                                                                       PlanKey planKey)
Returns:
all Triggerable that should be started on successful completion of a Plan


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.