com.atlassian.bamboo.plan
Class PlanParticleManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.PlanParticleManagerImpl
All Implemented Interfaces:
PlanParticleManager

public class PlanParticleManagerImpl
extends java.lang.Object
implements PlanParticleManager


Constructor Summary
PlanParticleManagerImpl(PlanManager planManager)
           
 
Method Summary
 void adjustPlanParticles(PlanKey planKey, java.util.Collection<? extends PlanParticle> consumedParticles, java.util.Collection<? extends PlanParticle> producedParticles)
          Adjust list of plan's consumed and produced particles.
 java.util.Set<PlanKey> getConsumersPlanKeys(java.lang.Iterable<? extends PlanParticle> planParticles)
          Return collection of Plan keys registered as planParticle consumers
 java.util.Set<PlanKey> getConsumersPlanKeys(PlanKey planKey)
          Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey
 java.util.Set<PlanKey> getProducersPlanKeys(java.lang.Iterable<? extends PlanParticle> planParticles)
          Return collection of Plan keys registered as planParticle producers
 java.util.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanParticleManagerImpl

public PlanParticleManagerImpl(PlanManager planManager)
Method Detail

getConsumersPlanKeys

@NotNull
public java.util.Set<PlanKey> getConsumersPlanKeys(java.lang.Iterable<? extends PlanParticle> planParticles)
Description copied from interface: PlanParticleManager
Return collection of Plan keys registered as planParticle consumers

Specified by:
getConsumersPlanKeys in interface PlanParticleManager
Parameters:
planParticles - collection of PlanParticles
Returns:
Collection of Plan keys registered as planParticle consumers

getConsumersPlanKeys

@NotNull
public java.util.Set<PlanKey> getConsumersPlanKeys(@NotNull
                                                           PlanKey planKey)
Description copied from interface: PlanParticleManager
Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey

Specified by:
getConsumersPlanKeys in interface PlanParticleManager
Parameters:
planKey - identifies producer of particles
Returns:
Collection of Plan keys

getProducersPlanKeys

@NotNull
public java.util.Set<PlanKey> getProducersPlanKeys(java.lang.Iterable<? extends PlanParticle> planParticles)
Description copied from interface: PlanParticleManager
Return collection of Plan keys registered as planParticle producers

Specified by:
getProducersPlanKeys in interface PlanParticleManager
Parameters:
planParticles - collection of PlanParticles
Returns:
Collection of Plan keys registered as planParticle producers

getProducersPlanKeys

@NotNull
public java.util.Set<PlanKey> getProducersPlanKeys(@NotNull
                                                           PlanKey planKey)
Description copied from interface: PlanParticleManager
Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey

Specified by:
getProducersPlanKeys in interface PlanParticleManager
Parameters:
planKey - identifies producer of particles
Returns:
Collection of Plan keys

adjustPlanParticles

public void adjustPlanParticles(@NotNull
                                PlanKey planKey,
                                @NotNull
                                java.util.Collection<? extends PlanParticle> consumedParticles,
                                @NotNull
                                java.util.Collection<? extends PlanParticle> producedParticles)
                         throws ConfigurationException
Description copied from interface: PlanParticleManager
Adjust list of plan's consumed and produced particles.

Specified by:
adjustPlanParticles in interface PlanParticleManager
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

public void removePlanParticles(@NotNull
                                PlanKey planKey)
Description copied from interface: PlanParticleManager
Removes all plan particles for a given plan. Needed when deleting the plan.

Specified by:
removePlanParticles in interface PlanParticleManager
Parameters:
planKey - to delete the particles of


Copyright © 2012 Atlassian. All Rights Reserved.