Class PendingBuildResultsStateRestorationImpl
- java.lang.Object
-
- com.atlassian.bamboo.container.startup.PendingBuildResultsStateRestorationImpl
-
- All Implemented Interfaces:
PendingBuildResultsStateRestoration
public class PendingBuildResultsStateRestorationImpl extends Object implements PendingBuildResultsStateRestoration
Helper class performing restoration and cleanup of pending and InProgress builds. Used at start up of Bamboo Server.
-
-
Constructor Summary
Constructors Constructor Description PendingBuildResultsStateRestorationImpl(ResultsSummaryManager resultsSummaryManager, CurrentlyBuildingContainer currentlyBuildingContainer, ChainExecutionManager chainExecutionManager, BuildExecutionManager buildExecutionManager, com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ResultKey>
restoreState()
Loads server state stored on disk and restores it.
-
-
-
Constructor Detail
-
PendingBuildResultsStateRestorationImpl
@Inject public PendingBuildResultsStateRestorationImpl(ResultsSummaryManager resultsSummaryManager, CurrentlyBuildingContainer currentlyBuildingContainer, ChainExecutionManager chainExecutionManager, BuildExecutionManager buildExecutionManager, com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager)
-
-
Method Detail
-
restoreState
public Set<ResultKey> restoreState()
Description copied from interface:PendingBuildResultsStateRestoration
Loads server state stored on disk and restores it. Performs cleanup of PENDING builds at Bamboo start-up in case their state was not restored. In that case converts all PENDING builds into NOT_BUILD if they are part of a chain and deletes them otherwise.- Specified by:
restoreState
in interfacePendingBuildResultsStateRestoration
- Returns:
- keys of restored job results
-
-