Class BuildExpiryBeanImpl
java.lang.Object
com.atlassian.bamboo.build.expiry.BuildExpiryBeanImpl
- All Implemented Interfaces:
BuildExpiryBean
-
Constructor Summary
ConstructorDescriptionBuildExpiryBeanImpl
(ResultsSummaryManager resultsSummaryManager, PlanManager planManager, AdministrationConfigurationAccessor administrationConfigurationAccessor, RepositoryDefinitionManager repositoryDefinitionManager, ErrorUpdateHandler errorUpdateHandler, com.atlassian.bandana.BandanaManager bandanaManager, TransactionAndHibernateTemplate template) -
Method Summary
Modifier and TypeMethodDescriptionprotected long
expireBuildPlan
(@NotNull BuildExpiryConfig config, @NotNull ImmutablePlan plan, @NotNull ResultsSummary lastResultsSummary) @NotNull ExpiryStatus
Triggers build expiry process, which loops through all plans and expires their builds.
-
Constructor Details
-
BuildExpiryBeanImpl
public BuildExpiryBeanImpl(ResultsSummaryManager resultsSummaryManager, PlanManager planManager, AdministrationConfigurationAccessor administrationConfigurationAccessor, RepositoryDefinitionManager repositoryDefinitionManager, ErrorUpdateHandler errorUpdateHandler, com.atlassian.bandana.BandanaManager bandanaManager, TransactionAndHibernateTemplate template)
-
-
Method Details
-
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
- Specified by:
getStatus
in interfaceBuildExpiryBean
-
expireBuildPlan
protected long expireBuildPlan(@NotNull @NotNull BuildExpiryConfig config, @NotNull @NotNull ImmutablePlan plan, @NotNull @NotNull ResultsSummary lastResultsSummary)
-