Package com.atlassian.bamboo.plan
Class PlanStatePersisterImpl
java.lang.Object
com.atlassian.bamboo.plan.PlanStatePersisterImpl
- All Implemented Interfaces:
PlanStatePersister
-
Constructor Summary
ConstructorsConstructorDescriptionPlanStatePersisterImpl(BuildResultsSummaryManager buildResultsSummaryManager, CurrentlyBuildingContainer currentlyBuildingContainer, ResultsSummaryManager resultsSummaryManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, TestsManager testsManager, com.atlassian.event.api.EventPublisher eventPublisher, BuildResultWarningSummaryDao buildResultWarningSummaryDao, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, CachedPlanManager cachedPlanManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidpersistChainState(@NotNull ChainState chainState) Saves the chain results.@NotNull BuildContextsaveFinishedBuildResult(@NotNull BuildContext buildContext) Saves results of build represented by a BuildContext into DB in single transaction.voidsaveNotBuiltBuildResult(PlanResultKey planResultKey, boolean updateFollowingBuilds) Handles results of not built job.void
-
Constructor Details
-
PlanStatePersisterImpl
@Inject public PlanStatePersisterImpl(BuildResultsSummaryManager buildResultsSummaryManager, CurrentlyBuildingContainer currentlyBuildingContainer, ResultsSummaryManager resultsSummaryManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, TestsManager testsManager, com.atlassian.event.api.EventPublisher eventPublisher, BuildResultWarningSummaryDao buildResultWarningSummaryDao, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, CachedPlanManager cachedPlanManager)
-
-
Method Details
-
saveFinishedBuildResult
@NotNull public @NotNull BuildContext saveFinishedBuildResult(@NotNull @NotNull BuildContext buildContext) throws Exception Description copied from interface:PlanStatePersisterSaves results of build represented by a BuildContext into DB in single transaction. Updates delta states of a following build if necessary.- Specified by:
saveFinishedBuildResultin interfacePlanStatePersister- Parameters:
buildContext- runtime representation of build process- Returns:
- updated buildContext
- Throws:
Exception
-
saveNotBuiltBuildResult
Description copied from interface:PlanStatePersisterHandles results of not built job. Sets build state and updates delta states of a following build if necessary.- Specified by:
saveNotBuiltBuildResultin interfacePlanStatePersister- Parameters:
planResultKey-updateFollowingBuilds-
-
persistChainState
Description copied from interface:PlanStatePersisterSaves the chain results. Updates delta states of a following chain result if necessary. Does not update associated Job results.- Specified by:
persistChainStatein interfacePlanStatePersister- Parameters:
chainState-
-
updateFixedInResultForThisAndPreviousBuilds
-