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
ConstructorDescriptionPendingBuildResultsStateRestorationImpl
(ResultsSummaryManager resultsSummaryManager, CurrentlyBuildingContainer currentlyBuildingContainer, ChainExecutionManager chainExecutionManager, BuildExecutionManager buildExecutionManager, com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptionLoads server state stored on disk and restores it.
-
Constructor Details
-
PendingBuildResultsStateRestorationImpl
@Inject public PendingBuildResultsStateRestorationImpl(ResultsSummaryManager resultsSummaryManager, CurrentlyBuildingContainer currentlyBuildingContainer, ChainExecutionManager chainExecutionManager, BuildExecutionManager buildExecutionManager, com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager)
-
-
Method Details
-
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
-