public class ImmutablePlanManagerImpl extends Object implements ImmutablePlanManager
Constructor and Description |
---|
ImmutablePlanManagerImpl(PlanManager planManager,
ResultsSummaryManager resultsSummaryManager,
BuildDefinitionManager buildDefinitionManager,
BuildLoggerManager buildLoggerManager,
LabelManager labelManager,
RepositoryDefinitionManager repositoryDefinitionManager,
TaskManager taskManager,
TriggerManager triggerManager,
VariableDefinitionManager variableDefinitionManager) |
Modifier and Type | Method and Description |
---|---|
ImmutableChain |
createImmutableChain(Chain chain) |
ImmutableJob |
createImmutableJob(ImmutableChain parent,
ImmutableChainStage stage,
Job job) |
ImmutableChainStage |
createImmutableStage(ImmutableChain parent,
ChainStage stage)
Create immutable
ChainStage . |
ChainResultDetails |
getChainResultDetails(PlanResultKey planResultKey) |
ImmutableResultsSummary |
getLatestResultForPlan(PlanKey planKey) |
ImmutableChain |
getPlanByKey(PlanKey planKey) |
public ImmutablePlanManagerImpl(PlanManager planManager, ResultsSummaryManager resultsSummaryManager, BuildDefinitionManager buildDefinitionManager, BuildLoggerManager buildLoggerManager, LabelManager labelManager, RepositoryDefinitionManager repositoryDefinitionManager, TaskManager taskManager, TriggerManager triggerManager, VariableDefinitionManager variableDefinitionManager)
@Nullable public ImmutableChain getPlanByKey(@NotNull PlanKey planKey)
getPlanByKey
in interface ImmutablePlanManager
@Nullable public ImmutableResultsSummary getLatestResultForPlan(PlanKey planKey)
getLatestResultForPlan
in interface ImmutablePlanManager
public ChainResultDetails getChainResultDetails(PlanResultKey planResultKey)
getChainResultDetails
in interface ImmutablePlanManager
@NotNull public ImmutableChain createImmutableChain(@NotNull Chain chain)
createImmutableChain
in interface ImmutablePlanManager
@NotNull public ImmutableJob createImmutableJob(@NotNull ImmutableChain parent, @NotNull ImmutableChainStage stage, @NotNull Job job)
createImmutableJob
in interface ImmutablePlanManager
parent
- instance of ImmutablePlanImplstage
- instance of ImmutableChainStageImplpublic ImmutableChainStage createImmutableStage(@NotNull ImmutableChain parent, @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 jobsCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.