com.atlassian.bamboo.plan
Interface PlanParticleManager

All Known Implementing Classes:
PlanParticleManagerImpl

@Internal
public interface PlanParticleManager


Method Summary
 void adjustPlanParticles(PlanKey planKey, Collection<? extends PlanParticle> consumedParticles, Collection<? extends PlanParticle> producedParticles)
          Adjust list of plan's consumed and produced particles.
 Set<PlanKey> getConsumersPlanKeys(Iterable<? extends PlanParticle> planParticles)
          Return collection of Plan keys registered as planParticle consumers
 Set<PlanKey> getConsumersPlanKeys(PlanKey planKey)
          Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey
 Set<PlanKey> getProducersPlanKeys(Iterable<? extends PlanParticle> planParticles)
          Return collection of Plan keys registered as planParticle producers
 Set<PlanKey> getProducersPlanKeys(PlanKey planKey)
          Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey
 void removePlanParticles(PlanKey planKey)
          Removes all plan particles for a given plan.
 

Method Detail

getConsumersPlanKeys

@NotNull
Set<PlanKey> getConsumersPlanKeys(Iterable<? extends PlanParticle> planParticles)
Return collection of Plan keys registered as planParticle consumers

Parameters:
planParticles - collection of PlanParticles
Returns:
Collection of Plan keys registered as planParticle consumers

getConsumersPlanKeys

@NotNull
Set<PlanKey> getConsumersPlanKeys(@NotNull
                                          PlanKey planKey)
Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey

Parameters:
planKey - identifies producer of particles
Returns:
Collection of Plan keys

getProducersPlanKeys

@NotNull
Set<PlanKey> getProducersPlanKeys(Iterable<? extends PlanParticle> planParticles)
Return collection of Plan keys registered as planParticle producers

Parameters:
planParticles - collection of PlanParticles
Returns:
Collection of Plan keys registered as planParticle producers

getProducersPlanKeys

@NotNull
Set<PlanKey> getProducersPlanKeys(@NotNull
                                          PlanKey planKey)
Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey

Parameters:
planKey - identifies producer of particles
Returns:
Collection of Plan keys

adjustPlanParticles

void adjustPlanParticles(@NotNull
                         PlanKey planKey,
                         @NotNull
                         Collection<? extends PlanParticle> consumedParticles,
                         @NotNull
                         Collection<? extends PlanParticle> producedParticles)
                         throws ConfigurationException
Adjust list of plan's consumed and produced particles.

Parameters:
planKey - Key of the plan to adjust.
consumedParticles - Collection of plan's consumed particles
producedParticles - Collection of plan's produced particles
Throws:
ConfigurationException - if it can not complete the adjusting of particles based on invalid data e.g cyclic dependencies

removePlanParticles

void removePlanParticles(@NotNull
                         PlanKey planKey)
Removes all plan particles for a given plan. Needed when deleting the plan.

Parameters:
planKey - to delete the particles of


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.