public class ImmutablePlanManagerImpl extends Object implements ImmutablePlanManager
Constructor and Description |
---|
ImmutablePlanManagerImpl(PlanManager planManager,
PlanDtoManager planDtoManager,
ResultsSummaryManager resultsSummaryManager,
BuildDefinitionManager buildDefinitionManager,
BuildLoggerManager buildLoggerManager,
LabelManager labelManager,
RepositoryDefinitionManager repositoryDefinitionManager,
TaskManager taskManager,
TriggerManager triggerManager,
VariableDefinitionManager variableDefinitionManager,
BambooSpecsManager bambooSpecsManager,
NotificationManager notificationManager,
RequirementManager requirementManager) |
public ImmutablePlanManagerImpl(PlanManager planManager, PlanDtoManager planDtoManager, ResultsSummaryManager resultsSummaryManager, BuildDefinitionManager buildDefinitionManager, BuildLoggerManager buildLoggerManager, LabelManager labelManager, RepositoryDefinitionManager repositoryDefinitionManager, TaskManager taskManager, TriggerManager triggerManager, VariableDefinitionManager variableDefinitionManager, BambooSpecsManager bambooSpecsManager, NotificationManager notificationManager, RequirementManager requirementManager)
@Nullable public @Nullable ImmutableChain getPlanByKey(@NotNull @NotNull PlanKey planKey)
getPlanByKey
in interface ImmutablePlanManager
@Nullable public @Nullable ImmutableResultsSummary getLatestResultForPlan(PlanKey planKey)
getLatestResultForPlan
in interface ImmutablePlanManager
public ChainResultDetails getChainResultDetails(PlanResultKey planResultKey)
getChainResultDetails
in interface ImmutablePlanManager
@NotNull public @NotNull ImmutableChain createImmutableChain(@NotNull @NotNull Chain chain)
createImmutableChain
in interface ImmutablePlanManager
@NotNull public @NotNull ImmutableJob createImmutableJob(@NotNull @NotNull ImmutableChain parent, @NotNull @NotNull ImmutableChainStage stage, @NotNull @NotNull Job job)
createImmutableJob
in interface ImmutablePlanManager
parent
- instance of ImmutablePlanImplstage
- instance of ImmutableChainStageImplpublic ImmutableChainStage createImmutableStage(@NotNull @NotNull ImmutableChain parent, @NotNull @NotNull ChainStage stage)
ImmutablePlanManager
ChainStage
.
Used to create immutable cached object from persisted entity.createImmutableStage
in interface ImmutablePlanManager
parent
- Chain
object (expecting an immutable object here as well)stage
- ChainStage
object used as a source of all properties including jobs@NotNull public @NotNull List<ImmutableChain> loadAllPlans(ForkJoinPool executorService)
ImmutablePlanManager
loadAllPlans
in interface ImmutablePlanManager
@NotNull public @NotNull ImmutableChainStage createImmutableStageBasedOnDto(@NotNull @NotNull ImmutableChain parent, @NotNull @NotNull FlatChainStageDto stageDto, @NotNull @NotNull Map<Long,List<EnrichedPlanDto>> jobsGroupedByStageId, @NotNull @NotNull Map<Long,EnrichedPlanDto> jobsGroupedById, boolean isLightWeight)
ImmutablePlanManager
ChainStage
.
Used to create immutable cached object from flat components - dto.createImmutableStageBasedOnDto
in interface ImmutablePlanManager
parent
- Chain
object (expecting an immutable object here as well)stageDto
- 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 public @NotNull ImmutableJob createImmutableJobBasedOnDto(@NotNull @NotNull ImmutableChain parent, @NotNull @NotNull ImmutableChainStage stage, @NotNull @NotNull EnrichedPlanDto jobDto, @NotNull @NotNull Map<Long,EnrichedPlanDto> jobsGroupedById, boolean isLightWeight)
ImmutablePlanManager
ImmutableJob
.
Used to create immutable cached object from flat components - dto.createImmutableJobBasedOnDto
in interface ImmutablePlanManager
parent
- Chain
object (expecting an immutable object here as well)stage
- ChainStage
object (expecting an immutable object here as well)jobDto
- 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.