public class PlanParticleManagerImpl extends Object implements PlanParticleManager
Constructor and Description |
---|
PlanParticleManagerImpl(PlanManager planManager) |
Modifier and Type | Method and Description |
---|---|
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.
|
public PlanParticleManagerImpl(PlanManager planManager)
@NotNull public Set<PlanKey> getConsumersPlanKeys(Iterable<? extends PlanParticle> planParticles)
PlanParticleManager
getConsumersPlanKeys
in interface PlanParticleManager
planParticles
- collection of PlanParticles@NotNull public Set<PlanKey> getConsumersPlanKeys(@NotNull PlanKey planKey)
PlanParticleManager
getConsumersPlanKeys
in interface PlanParticleManager
planKey
- identifies producer of particles@NotNull public Set<PlanKey> getProducersPlanKeys(Iterable<? extends PlanParticle> planParticles)
PlanParticleManager
getProducersPlanKeys
in interface PlanParticleManager
planParticles
- collection of PlanParticles@NotNull public Set<PlanKey> getProducersPlanKeys(@NotNull PlanKey planKey)
PlanParticleManager
getProducersPlanKeys
in interface PlanParticleManager
planKey
- identifies producer of particlespublic void adjustPlanParticles(@NotNull PlanKey planKey, @NotNull Collection<? extends PlanParticle> consumedParticles, @NotNull Collection<? extends PlanParticle> producedParticles) throws ConfigurationException
PlanParticleManager
adjustPlanParticles
in interface PlanParticleManager
planKey
- Key of the plan to adjust.consumedParticles
- Collection of plan's consumed particlesproducedParticles
- Collection of plan's produced particlesConfigurationException
- if it can not complete the adjusting of particles based on invalid data e.g cyclic dependenciespublic void removePlanParticles(@NotNull PlanKey planKey)
PlanParticleManager
removePlanParticles
in interface PlanParticleManager
planKey
- to delete the particles ofCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.