@ExperimentalApi
@Internal
public interface ImmutablePlanManager
Chain
.
You shouldn't use this. Really.@Nullable @Nullable ImmutableChain getPlanByKey(@NotNull @NotNull PlanKey planKey)
@Nullable @Nullable ImmutableResultsSummary getLatestResultForPlan(PlanKey planKey)
@Nullable @Nullable ChainResultDetails getChainResultDetails(PlanResultKey planResultKey)
@NotNull @NotNull ImmutableChain createImmutableChain(@NotNull @NotNull Chain chain)
@NotNull @NotNull ImmutableJob createImmutableJob(@NotNull @NotNull ImmutableChain parent, @NotNull @NotNull ImmutableChainStage stage, @NotNull @NotNull Job job)
parent
- instance of ImmutablePlanImplstage
- instance of ImmutableChainStageImpljob
- ImmutableChainStage createImmutableStage(@NotNull @NotNull ImmutableChain parent, @NotNull @NotNull ChainStage stage)
ChainStage
.
Used to create immutable cached object from persisted entity.parent
- Chain
object (expecting an immutable object here as well)stage
- ChainStage
object used as a source of all properties including jobs@NotNull @NotNull List<ImmutableChain> loadAllPlans(ForkJoinPool executorService)
@NotNull @NotNull ImmutableChainStage createImmutableStageBasedOnDto(@NotNull @NotNull ImmutableChain parent, @NotNull @NotNull FlatChainStageDto stage, @NotNull @NotNull Map<Long,List<EnrichedPlanDto>> jobsGroupedByStageId, @NotNull @NotNull Map<Long,EnrichedPlanDto> jobsGroupedById, boolean isLightWeight)
ChainStage
.
Used to create immutable cached object from flat components - dto.parent
- Chain
object (expecting an immutable object here as well)stage
- FlatChainStageDto
flat object used as a source of core attributesjobsGroupedByStageId
- Map of flat job objects grouped by stage idjobsGroupedById
- Map of flat job objects grouped by their main idisLightWeight
- informs whether it is a derived stage from a lightweight branch or not@NotNull @NotNull ImmutableJob createImmutableJobBasedOnDto(@NotNull @NotNull ImmutableChain parent, @NotNull @NotNull ImmutableChainStage stage, @NotNull @NotNull EnrichedPlanDto job, @NotNull @NotNull Map<Long,EnrichedPlanDto> jobsGroupedById, boolean isLightWeight)
ImmutableJob
.
Used to create immutable cached object from flat components - dto.parent
- Chain
object (expecting an immutable object here as well)stage
- ChainStage
object (expecting an immutable object here as well)job
- EnrichedPlanDto
flat object used as a source of core attributesjobsGroupedById
- Map of flat job objects grouped by their main idisLightWeight
- informs whether it is a derived job from a lightweight branch or notCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.