Class BuildExpiryBeanImpl
- java.lang.Object
-
- com.atlassian.bamboo.build.expiry.BuildExpiryBeanImpl
-
- All Implemented Interfaces:
BuildExpiryBean
public class BuildExpiryBeanImpl extends Object implements BuildExpiryBean
-
-
Constructor Summary
Constructors Constructor Description BuildExpiryBeanImpl(ResultsSummaryManager resultsSummaryManager, PlanManager planManager, AdministrationConfigurationAccessor administrationConfigurationAccessor, RepositoryDefinitionManager repositoryDefinitionManager, ErrorUpdateHandler errorUpdateHandler, com.atlassian.bandana.BandanaManager bandanaManager, TransactionAndHibernateTemplate template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
expireBuildPlan(@NotNull BuildExpiryConfig config, @NotNull ImmutablePlan plan, @NotNull ResultsSummary lastResultsSummary)
@NotNull ExpiryStatus
getStatus()
@NotNull Future<Long>
triggerBuildExpiry()
Triggers build expiry process, which loops through all plans and expires their builds.
-
-
-
Constructor Detail
-
BuildExpiryBeanImpl
public BuildExpiryBeanImpl(ResultsSummaryManager resultsSummaryManager, PlanManager planManager, AdministrationConfigurationAccessor administrationConfigurationAccessor, RepositoryDefinitionManager repositoryDefinitionManager, ErrorUpdateHandler errorUpdateHandler, com.atlassian.bandana.BandanaManager bandanaManager, TransactionAndHibernateTemplate template)
-
-
Method Detail
-
triggerBuildExpiry
@NotNull public @NotNull Future<Long> triggerBuildExpiry()
Description copied from interface:BuildExpiryBean
Triggers build expiry process, which loops through all plans and expires their builds. Build expiry is guaranteed to only run one at a time. Any request to this method when already running will be ignored and will return the future object containing result of the already running process.- Specified by:
triggerBuildExpiry
in interfaceBuildExpiryBean
- Returns:
- a future reference for number of build results affected by the expiry process
-
getStatus
@NotNull public @NotNull ExpiryStatus getStatus()
- Specified by:
getStatus
in interfaceBuildExpiryBean
-
expireBuildPlan
protected long expireBuildPlan(@NotNull @NotNull BuildExpiryConfig config, @NotNull @NotNull ImmutablePlan plan, @NotNull @NotNull ResultsSummary lastResultsSummary)
-
-