com.atlassian.bamboo.build.expiry
Class BuildExpiryBean

java.lang.Object
  extended by com.atlassian.bamboo.build.expiry.BuildExpiryBean

public class BuildExpiryBean
extends java.lang.Object

A bean that manages the build expiry process


Constructor Summary
BuildExpiryBean(ResultsSummaryManager resultsSummaryManager, PlanManager planManager, AdministrationConfigurationManager administrationConfigurationManager, LabelDao labelDao, RepositoryDefinitionManager repositoryDefinitionManager, ErrorUpdateHandler errorUpdateHandler)
           
 
Method Summary
 int expireAllBuilds()
          Loops through all builds and expires their builds.
 int expirePlan(BuildExpiryConfig config, Plan plan, ResultsSummary lastResultsSummary)
          Expires builds according to the passed BuildExpiryConfig object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildExpiryBean

public BuildExpiryBean(ResultsSummaryManager resultsSummaryManager,
                       PlanManager planManager,
                       AdministrationConfigurationManager administrationConfigurationManager,
                       LabelDao labelDao,
                       RepositoryDefinitionManager repositoryDefinitionManager,
                       ErrorUpdateHandler errorUpdateHandler)
Method Detail

expireAllBuilds

public int expireAllBuilds()
Loops through all builds and expires their builds. This method is guaranteed to only run one at a time. Any request to this method when already running will be ignored

Returns:
integer - number of build results affected by the expiry process

expirePlan

public int expirePlan(BuildExpiryConfig config,
                      Plan plan,
                      ResultsSummary lastResultsSummary)
Expires builds according to the passed BuildExpiryConfig object. All params are required

Parameters:
config - - how should things be expired
plan - - build to expire
lastResultsSummary - - the last build results summary to take all the relative time to
Returns:
integer - number of build results affected


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.