public class PlanStatePersisterImpl extends Object implements PlanStatePersister
Constructor and Description |
---|
PlanStatePersisterImpl(PlanManager planManager,
BuildResultsIndexer buildResultsIndexer,
BuildResultsSummaryManager buildResultsSummaryManager,
CurrentlyBuildingContainer currentlyBuildingContainer,
ResultsSummaryManager resultsSummaryManager,
ErrorUpdateHandler errorUpdateHandler,
BuildLoggerManager buildLoggerManager,
TestsManager testsManager,
com.atlassian.event.api.EventPublisher eventPublisher,
BuildResultWarningSummaryDao buildResultWarningSummaryDao,
PlanVcsRevisionHistoryService planVcsRevisionHistoryService) |
Modifier and Type | Method and Description |
---|---|
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,
boolean updateFollowingBuilds)
Handles results of not built job.
|
void |
updateFixedInResultForThisAndPreviousBuilds(ChainResultsSummary chainResult) |
public PlanStatePersisterImpl(PlanManager planManager, BuildResultsIndexer buildResultsIndexer, BuildResultsSummaryManager buildResultsSummaryManager, CurrentlyBuildingContainer currentlyBuildingContainer, ResultsSummaryManager resultsSummaryManager, ErrorUpdateHandler errorUpdateHandler, BuildLoggerManager buildLoggerManager, TestsManager testsManager, com.atlassian.event.api.EventPublisher eventPublisher, BuildResultWarningSummaryDao buildResultWarningSummaryDao, PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
@NotNull public BuildContext saveFinishedBuildResult(@NotNull BuildContext buildContext) throws Exception
PlanStatePersister
saveFinishedBuildResult
in interface PlanStatePersister
buildContext
- runtime representation of build processException
public void saveNotBuiltBuildResult(PlanResultKey planResultKey, boolean updateFollowingBuilds)
PlanStatePersister
saveNotBuiltBuildResult
in interface PlanStatePersister
public void persistChainState(@NotNull ChainState chainState)
PlanStatePersister
persistChainState
in interface PlanStatePersister
public void updateFixedInResultForThisAndPreviousBuilds(ChainResultsSummary chainResult)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.