com.atlassian.bamboo.plan
Interface PlanStatePersister

All Known Implementing Classes:
PlanStatePersisterImpl

public interface PlanStatePersister

Transactional service converting runtime representation of build or chain result into persistent ResultsSummary object. Those operation may update other ResultsSummaries, i.e. delta states of builds following currently saved build.


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.
 

Method Detail

saveFinishedBuildResult

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

Parameters:
buildContext - runtime representation of build process
Returns:
updated buildContext
Throws:
java.lang.Exception

saveNotBuiltBuildResult

void saveNotBuiltBuildResult(PlanResultKey planResultKey)
Handles results of not built job. Sets build state and updates delta states of a following build if necessary.

Parameters:
planResultKey -

persistChainState

void persistChainState(@NotNull
                       ChainState chainState)
Saves the chain results. Updates delta states of a following chain result if necessary. Does not update associated Job results.

Parameters:
chainState -


Copyright © 2011 Atlassian. All Rights Reserved.