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(BuildResultsSummaryManager buildResultsSummaryManager,
BuildManager buildManager,
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 alreading running will be ignored
- Returns:
- integer - number of build results affected by the expiry process
expireBuild
public int expireBuild(BuildExpiryConfig config,
Build build,
BuildResultsSummary lastBuildResultsSummary)
- Expires builds according to the passed
BuildExpiryConfig
object. All paramas are required
- Parameters:
config
- - how should things be expiredbuild
- - build to expirelastBuildResultsSummary
- - the last build results summary to take all the relative time to
- Returns:
- integer - number of build results affected
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.