com.atlassian.bamboo.plan
Class PlanStatePersisterImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.PlanStatePersisterImpl
All Implemented Interfaces:
PlanStatePersister

public class PlanStatePersisterImpl
extends java.lang.Object
implements PlanStatePersister


Constructor Summary
PlanStatePersisterImpl(PlanManager planManager, BuildResultsIndexer buildResultsIndexer, BuildResultsSummaryManager buildResultsSummaryManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, BuildExecutionManager buildExecutionManager, BuildDefinitionManager buildDefinitionManager, TestsManager testsManager)
           
 
Method Summary
 void persistChainState(ChainState chainState)
          Saves the chain results.
 BuildContext saveFinishedBuildResult(BuildContext buildContext)
          Saves results of build represented by a BuildContext into DB in single transaction.
 void saveNotBuiltBuildResult(PlanResultKey planResultKey)
          Handles results of not built job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanStatePersisterImpl

public PlanStatePersisterImpl(PlanManager planManager,
                              BuildResultsIndexer buildResultsIndexer,
                              BuildResultsSummaryManager buildResultsSummaryManager,
                              ErrorUpdateHandler errorUpdateHandler,
                              BuildLoggerManager buildLoggerManager,
                              BuildExecutionManager buildExecutionManager,
                              BuildDefinitionManager buildDefinitionManager,
                              TestsManager testsManager)
Method Detail

saveFinishedBuildResult

@NotNull
public BuildContext saveFinishedBuildResult(@NotNull
                                                    BuildContext buildContext)
                                     throws java.lang.Exception
Description copied from interface: PlanStatePersister
Saves results of build represented by a BuildContext into DB in single transaction. Updates delta states of a following build if necessary.

Specified by:
saveFinishedBuildResult in interface PlanStatePersister
Parameters:
buildContext - runtime representation of build process
Returns:
updated buildContext
Throws:
java.lang.Exception

saveNotBuiltBuildResult

public void saveNotBuiltBuildResult(PlanResultKey planResultKey)
Description copied from interface: PlanStatePersister
Handles results of not built job. Sets build state and updates delta states of a following build if necessary.

Specified by:
saveNotBuiltBuildResult in interface PlanStatePersister

persistChainState

public void persistChainState(@NotNull
                              ChainState chainState)
Description copied from interface: PlanStatePersister
Saves the chain results. Updates delta states of a following chain result if necessary. Does not update associated Job results.

Specified by:
persistChainState in interface PlanStatePersister


Copyright © 2012 Atlassian. All Rights Reserved.