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)
PlanParticleManagergetConsumersPlanKeys in interface PlanParticleManagerplanParticles - collection of PlanParticles@NotNull public Set<PlanKey> getConsumersPlanKeys(@NotNull PlanKey planKey)
PlanParticleManagergetConsumersPlanKeys in interface PlanParticleManagerplanKey - identifies producer of particles@NotNull public Set<PlanKey> getProducersPlanKeys(Iterable<? extends PlanParticle> planParticles)
PlanParticleManagergetProducersPlanKeys in interface PlanParticleManagerplanParticles - collection of PlanParticles@NotNull public Set<PlanKey> getProducersPlanKeys(@NotNull PlanKey planKey)
PlanParticleManagergetProducersPlanKeys in interface PlanParticleManagerplanKey - identifies producer of particlespublic void adjustPlanParticles(@NotNull
PlanKey planKey,
@NotNull
Collection<? extends PlanParticle> consumedParticles,
@NotNull
Collection<? extends PlanParticle> producedParticles)
throws ConfigurationException
PlanParticleManageradjustPlanParticles in interface PlanParticleManagerplanKey - 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)
PlanParticleManagerremovePlanParticles in interface PlanParticleManagerplanKey - to delete the particles ofCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.