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)
           
 
Method Summary
 int expireAllBuilds()
          Loops through all builds and expires their builds.
 int expireBuild(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)
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

expireBuild

public int expireBuild(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 © 2010 Atlassian. All Rights Reserved.