com.atlassian.bamboo.container.startup
Class PendingBuildResultsCleanupImpl

java.lang.Object
  extended by com.atlassian.bamboo.container.startup.PendingBuildResultsCleanupImpl
All Implemented Interfaces:
PendingBuildResultsCleanup

public class PendingBuildResultsCleanupImpl
extends java.lang.Object
implements PendingBuildResultsCleanup

Helper class performing cleanup of pending builds. Used at start up of Bamboo Server and when finishing PENDING build (e.g. due to agent going offline)


Constructor Summary
PendingBuildResultsCleanupImpl(BuildManager buildManager, BuildResultsSummaryManager buildResultsSummaryManager, ChainResultManager chainResultManager)
           
 
Method Summary
 void cleanUp()
          Performs cleanup of PENDING builds at Bamboo start-up.
 void singleResultCleanUp(BuildResultsSummary buildResult)
          Performs cleanup of single PENDING build.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PendingBuildResultsCleanupImpl

public PendingBuildResultsCleanupImpl(BuildManager buildManager,
                                      BuildResultsSummaryManager buildResultsSummaryManager,
                                      ChainResultManager chainResultManager)
Method Detail

cleanUp

public void cleanUp()
Description copied from interface: PendingBuildResultsCleanup
Performs cleanup of PENDING builds at Bamboo start-up. Converts all PENDING builds into NOT_BUILD if they are part of a chain. Deletes them otherwise.

Specified by:
cleanUp in interface PendingBuildResultsCleanup

singleResultCleanUp

public void singleResultCleanUp(@NotNull
                                BuildResultsSummary buildResult)
Description copied from interface: PendingBuildResultsCleanup
Performs cleanup of single PENDING build. Converts it into NOT_BUILD if it is of a chain. Deletes it otherwise.

Specified by:
singleResultCleanUp in interface PendingBuildResultsCleanup


Copyright © 2010 Atlassian. All Rights Reserved.