com.atlassian.bamboo.plan.cache
Interface ImmutablePlanManager

All Known Implementing Classes:
ImmutablePlanManagerImpl

public interface ImmutablePlanManager

Transactional manager for immutable plans. Only works for Chain. You shouldn't use this. Really.

Since:
v3.4

Method Summary
 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)
           
 

Method Detail

getPlanByKey

@Nullable
ImmutableChain getPlanByKey(@NotNull
                                     PlanKey planKey)

getLatestResultForPlan

@Nullable
ImmutableResultsSummary getLatestResultForPlan(PlanKey planKey)

getChainResultDetails

@Nullable
ChainResultDetails getChainResultDetails(PlanResultKey planResultKey)

createImmutableChain

@NotNull
ImmutableChain createImmutableChain(@NotNull
                                            Chain chain)

createImmutableJob

@NotNull
ImmutableJob createImmutableJob(@NotNull
                                        ImmutableChain parent,
                                        @NotNull
                                        ImmutableChainStage stage,
                                        @NotNull
                                        Job job)
Parameters:
parent - instance of ImmutablePlanImpl
stage - instance of ImmutableChainStageImpl
job -
Returns:

createImmutableStage

ImmutableChainStage createImmutableStage(@NotNull
                                         ImmutableChain parent,
                                         @NotNull
                                         ChainStage stage)
Create immutable ChainStage. Used to create immutable cached object from persisted entity.

Parameters:
parent - Chain object (expecting an immutable object here as well)
stage - ChainStage object used as a source of all properties including jobs
Returns:


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.