Package com.atlassian.bamboo.plan
Class PlanParticleManagerImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.PlanParticleManagerImpl
-
- All Implemented Interfaces:
PlanParticleManager
public class PlanParticleManagerImpl extends Object implements PlanParticleManager
-
-
Constructor Summary
Constructors Constructor Description PlanParticleManagerImpl(PlanManager planManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adjustPlanParticles(@NotNull PlanKey planKey, @NotNull Collection<? extends PlanParticle> consumedParticles, @NotNull Collection<? extends PlanParticle> producedParticles)
Adjust list of plan's consumed and produced particles.@NotNull Set<PlanKey>
getConsumersPlanKeys(@NotNull PlanKey planKey)
Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey@NotNull Set<PlanKey>
getConsumersPlanKeys(Iterable<? extends PlanParticle> planParticles)
Return collection of Plan keys registered as planParticle consumers@NotNull Set<PlanKey>
getProducersPlanKeys(@NotNull PlanKey planKey)
Return collection of Plan keys registered as consumers of particles produced by plan identified with planKey@NotNull Set<PlanKey>
getProducersPlanKeys(Iterable<? extends PlanParticle> planParticles)
Return collection of Plan keys registered as planParticle producersvoid
removePlanParticles(@NotNull PlanKey planKey)
Removes all plan particles for a given plan.
-
-
-
Constructor Detail
-
PlanParticleManagerImpl
public PlanParticleManagerImpl(PlanManager planManager)
-
-
Method Detail
-
getConsumersPlanKeys
@NotNull public @NotNull Set<PlanKey> getConsumersPlanKeys(Iterable<? extends PlanParticle> planParticles)
Description copied from interface:PlanParticleManager
Return collection of Plan keys registered as planParticle consumers- Specified by:
getConsumersPlanKeys
in interfacePlanParticleManager
- Parameters:
planParticles
- collection of PlanParticles- Returns:
- Collection of Plan keys registered as planParticle consumers
-
getConsumersPlanKeys
@NotNull public @NotNull Set<PlanKey> getConsumersPlanKeys(@NotNull @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 interfacePlanParticleManager
- Parameters:
planKey
- identifies producer of particles- Returns:
- Collection of Plan keys
-
getProducersPlanKeys
@NotNull public @NotNull Set<PlanKey> getProducersPlanKeys(Iterable<? extends PlanParticle> planParticles)
Description copied from interface:PlanParticleManager
Return collection of Plan keys registered as planParticle producers- Specified by:
getProducersPlanKeys
in interfacePlanParticleManager
- Parameters:
planParticles
- collection of PlanParticles- Returns:
- Collection of Plan keys registered as planParticle producers
-
getProducersPlanKeys
@NotNull public @NotNull Set<PlanKey> getProducersPlanKeys(@NotNull @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 interfacePlanParticleManager
- Parameters:
planKey
- identifies producer of particles- Returns:
- Collection of Plan keys
-
adjustPlanParticles
public void adjustPlanParticles(@NotNull @NotNull PlanKey planKey, @NotNull @NotNull Collection<? extends PlanParticle> consumedParticles, @NotNull @NotNull Collection<? extends PlanParticle> producedParticles) throws ConfigurationException
Description copied from interface:PlanParticleManager
Adjust list of plan's consumed and produced particles.- Specified by:
adjustPlanParticles
in interfacePlanParticleManager
- Parameters:
planKey
- Key of the plan to adjust.consumedParticles
- Collection of plan's consumed particlesproducedParticles
- 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 @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 interfacePlanParticleManager
- Parameters:
planKey
- to delete the particles of
-
-