com.atlassian.bamboo.plan
Class PlanStatePersisterServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.PlanStatePersisterServiceImpl
All Implemented Interfaces:
PlanStatePersisterService

public class PlanStatePersisterServiceImpl
extends java.lang.Object
implements PlanStatePersisterService


Constructor Summary
PlanStatePersisterServiceImpl(PlanStatePersister planStatePersister, ResultsSummaryManager resultsSummaryManager)
           
 
Method Summary
 void persistChainState(ChainState chainState)
          Saves the chain results.
 BuildContext saveFinishedBuildResult(BuildContext buildContext)
          Saves results of a finished build represented by a BuildContext
 void saveNotBuiltBuildResult(PlanResultKey planResultKey)
          Saves results of not build results identified by PlanResultKey.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanStatePersisterServiceImpl

public PlanStatePersisterServiceImpl(PlanStatePersister planStatePersister,
                                     ResultsSummaryManager resultsSummaryManager)
Method Detail

saveFinishedBuildResult

@NotNull
public BuildContext saveFinishedBuildResult(@NotNull
                                                    BuildContext buildContext)
                                     throws java.lang.Exception
Description copied from interface: PlanStatePersisterService
Saves results of a finished build represented by a BuildContext

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

saveNotBuiltBuildResult

public void saveNotBuiltBuildResult(@NotNull
                                    PlanResultKey planResultKey)
Description copied from interface: PlanStatePersisterService
Saves results of not build results identified by PlanResultKey. Updates delta information of the following build if applicable.

Specified by:
saveNotBuiltBuildResult in interface PlanStatePersisterService

persistChainState

public void persistChainState(@NotNull
                              ChainState chainState)
Description copied from interface: PlanStatePersisterService
Saves the chain results. Updates state of waiting jobs to NOT_BUILT.

Specified by:
persistChainState in interface PlanStatePersisterService


Copyright © 2011 Atlassian. All Rights Reserved.