Package 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
Modifier and TypeMethodDescriptionvoid
persistChainState
(@NotNull ChainState chainState) Saves the chain results.@NotNull BuildContext
saveFinishedBuildResult
(@NotNull BuildContext buildContext) Saves results of build represented by a BuildContext into DB in single transaction.void
saveNotBuiltBuildResult
(PlanResultKey planResultKey, boolean updateFollowingBuilds) Handles results of not built job.
-
Method Details
-
saveFinishedBuildResult
@NotNull @NotNull BuildContext saveFinishedBuildResult(@NotNull @NotNull BuildContext buildContext) throws 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:
Exception
-
saveNotBuiltBuildResult
Handles results of not built job. Sets build state and updates delta states of a following build if necessary.- Parameters:
planResultKey
-updateFollowingBuilds
-
-
persistChainState
Saves the chain results. Updates delta states of a following chain result if necessary. Does not update associated Job results.- Parameters:
chainState
-
-