com.atlassian.bamboo.build.expiry
Class BuildExpiryBean
java.lang.Object
com.atlassian.bamboo.build.expiry.BuildExpiryBean
public class BuildExpiryBean
- extends java.lang.Object
A bean that manages the build expiry process
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildExpiryBean
public BuildExpiryBean(ResultsSummaryManager resultsSummaryManager,
PlanManager planManager,
AdministrationConfigurationManager administrationConfigurationManager,
LabelDao labelDao)
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 expiredplan
- - build to expirelastResultsSummary
- - 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.