Package com.atlassian.bamboo.plan
Class PlanStatePersisterImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.PlanStatePersisterImpl
-
- All Implemented Interfaces:
PlanStatePersister
public class PlanStatePersisterImpl extends Object implements PlanStatePersister
-
-
Constructor Summary
Constructors Constructor Description PlanStatePersisterImpl(PlanManager planManager, BuildResultsSummaryManager buildResultsSummaryManager, CurrentlyBuildingContainer currentlyBuildingContainer, ResultsSummaryManager resultsSummaryManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, TestsManager testsManager, com.atlassian.event.api.EventPublisher eventPublisher, BuildResultWarningSummaryDao buildResultWarningSummaryDao, PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.void
updateFixedInResultForThisAndPreviousBuilds(ChainResultsSummary chainResult)
-
-
-
Constructor Detail
-
PlanStatePersisterImpl
public PlanStatePersisterImpl(PlanManager planManager, BuildResultsSummaryManager buildResultsSummaryManager, CurrentlyBuildingContainer currentlyBuildingContainer, ResultsSummaryManager resultsSummaryManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, TestsManager testsManager, com.atlassian.event.api.EventPublisher eventPublisher, BuildResultWarningSummaryDao buildResultWarningSummaryDao, PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
-
-
Method Detail
-
saveFinishedBuildResult
@NotNull public @NotNull BuildContext saveFinishedBuildResult(@NotNull @NotNull BuildContext buildContext) throws 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 interfacePlanStatePersister
- Parameters:
buildContext
- runtime representation of build process- Returns:
- updated buildContext
- Throws:
Exception
-
saveNotBuiltBuildResult
public void saveNotBuiltBuildResult(PlanResultKey planResultKey, boolean updateFollowingBuilds)
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 interfacePlanStatePersister
-
persistChainState
public void persistChainState(@NotNull @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 interfacePlanStatePersister
-
updateFixedInResultForThisAndPreviousBuilds
public void updateFixedInResultForThisAndPreviousBuilds(ChainResultsSummary chainResult)
-
-