Class MutableExpiryCriteria
java.lang.Object
com.atlassian.bamboo.resultsummary.MutableExpiryCriteria
- All Implemented Interfaces:
ExpiryCriteria
A mutable version of
ExpiryCriteria.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA set of labellings to exclude from the search (so to avoid expiring build results with certain labels).@Nullable DateA criterion for result summaries completion date - will cause to fetch only results completed before the date.@Nullable IntegerA criterion for result summaries that will cause to fetch only results with smaller than or equal build number.@Nullable LongA threshold for result summariesImmutableResultsSummary.getLogSize()- the log size must be either unknown or greater than the given value.intNumber of results to return.A criterion for result summaries that will cause to fetch results with smaller build number, regardless ofExpiryCriteria.getMaxBuildCompletedDate()@NotNull PlanKeyA plan key by which theresult summariesshould be filtered.@NotNull Class<? extends ResultsSummary> The actual class of returned result summaries (eg.booleanA filter for result summaries that requires them to have a directly or indirectly linked artifact (eg. an artifact link exists for a job result of a chain result).voidsetLabelsToExclude(@NotNull Iterable<String> labelsToExclude) voidsetMaxBuildCompletedDate(@Nullable Date maxBuildCompletedDate) voidsetMaxBuildNumber(@Nullable Integer maxBuildNumber) voidsetMaxIgnoredLogSize(@Nullable Long maxIgnoredLogSize) voidsetMaxResults(long maxResults) voidsetMinBuildNumberToKeep(Integer minBuildNumberToKeep) voidsetRequireArtifactLinks(boolean requireArtifactLinks)
-
Field Details
-
planKey
-
resultsSummaryClass
-
requireArtifactLinks
protected boolean requireArtifactLinks -
maxIgnoredLogSize
-
maxBuildNumber
-
minBuildNumberToKeep
-
maxBuildCompletedDate
-
labelsToExclude
-
maxResults
protected long maxResults
-
-
Constructor Details
-
MutableExpiryCriteria
-
-
Method Details
-
getPlanKey
Description copied from interface:ExpiryCriteriaA plan key by which theresult summariesshould be filtered.- Specified by:
getPlanKeyin interfaceExpiryCriteria
-
getResultsSummaryClass
Description copied from interface:ExpiryCriteriaThe actual class of returned result summaries (eg.ChainResultsSummaryorBuildResultsSummary).- Specified by:
getResultsSummaryClassin interfaceExpiryCriteria
-
isRequireArtifactLinks
public boolean isRequireArtifactLinks()Description copied from interface:ExpiryCriteriaA filter for result summaries that requires them to have a directly or indirectly linked artifact (eg. an artifact link exists for a job result of a chain result).Note that this search criterion and
ExpiryCriteria.getMaxIgnoredLogSize()criterion are a disjunction (either of the conditions must be met).- Specified by:
isRequireArtifactLinksin interfaceExpiryCriteria
-
getMaxIgnoredLogSize
Description copied from interface:ExpiryCriteriaA threshold for result summariesImmutableResultsSummary.getLogSize()- the log size must be either unknown or greater than the given value.Note that this search criterion and
ExpiryCriteria.isRequireArtifactLinks()criterion are a disjunction (either of the conditions must be met).- Specified by:
getMaxIgnoredLogSizein interfaceExpiryCriteria- Returns:
- the log size threshold (inclusive) or null, if the criterion is not set
-
getMaxBuildNumber
Description copied from interface:ExpiryCriteriaA criterion for result summaries that will cause to fetch only results with smaller than or equal build number.- Specified by:
getMaxBuildNumberin interfaceExpiryCriteria- Returns:
- the maximum result build number or null, if the criterion is not set
-
getMaxBuildCompletedDate
Description copied from interface:ExpiryCriteriaA criterion for result summaries completion date - will cause to fetch only results completed before the date.- Specified by:
getMaxBuildCompletedDatein interfaceExpiryCriteria- Returns:
- the date or null, if the criterion is not set
-
getLabelsToExclude
Description copied from interface:ExpiryCriteriaA set of labellings to exclude from the search (so to avoid expiring build results with certain labels).- Specified by:
getLabelsToExcludein interfaceExpiryCriteria- Returns:
- an immutable set of labels to exclude
-
getMaxResults
public int getMaxResults()Description copied from interface:ExpiryCriteriaNumber of results to return.- Specified by:
getMaxResultsin interfaceExpiryCriteria
-
setRequireArtifactLinks
public void setRequireArtifactLinks(boolean requireArtifactLinks) -
setMaxIgnoredLogSize
-
setMaxBuildNumber
-
setMaxBuildCompletedDate
-
setLabelsToExclude
-
setMaxResults
public void setMaxResults(long maxResults) -
getMinBuildNumberToKeep
Description copied from interface:ExpiryCriteriaA criterion for result summaries that will cause to fetch results with smaller build number, regardless ofExpiryCriteria.getMaxBuildCompletedDate()- Specified by:
getMinBuildNumberToKeepin interfaceExpiryCriteria- Returns:
- the first build number that should be kept or null, if the criterion is not set
-
setMinBuildNumberToKeep
-