com.atlassian.bamboo.plan.cache
Class ImmutablePlanManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.cache.ImmutablePlanManagerImpl
All Implemented Interfaces:
ImmutablePlanManager

public class ImmutablePlanManagerImpl
extends java.lang.Object
implements ImmutablePlanManager

Since:
v3.4

Constructor Summary
ImmutablePlanManagerImpl(PlanManager planManager, ResultsSummaryManager resultsSummaryManager, BuildDefinitionManager buildDefinitionManager, BuildLoggerManager buildLoggerManager, LabelManager labelManager, RepositoryDefinitionManager repositoryDefinitionManager, TaskManager taskManager, TriggerManager triggerManager, VariableDefinitionManager variableDefinitionManager, BuildExecutionManager buildExecutionManager)
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutablePlanManagerImpl

public ImmutablePlanManagerImpl(PlanManager planManager,
                                ResultsSummaryManager resultsSummaryManager,
                                BuildDefinitionManager buildDefinitionManager,
                                BuildLoggerManager buildLoggerManager,
                                LabelManager labelManager,
                                RepositoryDefinitionManager repositoryDefinitionManager,
                                TaskManager taskManager,
                                TriggerManager triggerManager,
                                VariableDefinitionManager variableDefinitionManager,
                                BuildExecutionManager buildExecutionManager)
Method Detail

getPlanByKey

@Nullable
public ImmutableChain getPlanByKey(@NotNull
                                            PlanKey planKey)
Specified by:
getPlanByKey in interface ImmutablePlanManager

getLatestResultForPlan

public ImmutableResultsSummary getLatestResultForPlan(PlanKey planKey)
Specified by:
getLatestResultForPlan in interface ImmutablePlanManager

getChainResultDetails

public ChainResultDetails getChainResultDetails(PlanResultKey planResultKey)
Specified by:
getChainResultDetails in interface ImmutablePlanManager

createImmutableChain

@NotNull
public ImmutableChain createImmutableChain(@NotNull
                                                   Chain chain)
Specified by:
createImmutableChain in interface ImmutablePlanManager

createImmutableJob

@NotNull
public ImmutableJob createImmutableJob(@NotNull
                                               ImmutableChain parent,
                                               @NotNull
                                               ImmutableChainStage stage,
                                               @NotNull
                                               Job job)
Specified by:
createImmutableJob in interface ImmutablePlanManager
Parameters:
parent - instance of ImmutablePlanImpl
stage - instance of ImmutableChainStageImpl
Returns:

createImmutableStage

public ImmutableChainStage createImmutableStage(@NotNull
                                                ImmutableChain parent,
                                                @NotNull
                                                ChainStage stage)
Description copied from interface: ImmutablePlanManager
Create immutable ChainStage. Used to create immutable cached object from persisted entity.

Specified by:
createImmutableStage in interface ImmutablePlanManager
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.