public class MutableExpiryCriteria extends Object implements ExpiryCriteria
ExpiryCriteria.| Modifier and Type | Field and Description | 
|---|---|
static int | 
DEFAULT_BATCH_SIZE  | 
protected com.google.common.collect.ImmutableSet<String> | 
labelsToExclude  | 
protected org.joda.time.DateTime | 
maxBuildCompletedDate  | 
protected Integer | 
maxBuildNumber  | 
protected Long | 
maxIgnoredLogSize  | 
protected int | 
maxResults  | 
protected Integer | 
minBuildNumberToKeep  | 
protected PlanKey | 
planKey  | 
protected boolean | 
requireArtifactLinks  | 
protected Class<? extends ResultsSummary> | 
resultsSummaryClass  | 
| Constructor and Description | 
|---|
MutableExpiryCriteria(@NotNull PlanKey planKey)  | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Set<String> | 
getLabelsToExclude()
A set of labellings to exclude from the search (so to avoid expiring build results with certain labels). 
 | 
@Nullable org.joda.time.DateTime | 
getMaxBuildCompletedDate()
A criterion for result summaries completion date - will cause to fetch only results completed before the date. 
 | 
@Nullable Integer | 
getMaxBuildNumber()
A criterion for result summaries that will cause to fetch only results with smaller than or equal build number. 
 | 
@Nullable Long | 
getMaxIgnoredLogSize()
A threshold for result summaries  
ImmutableResultsSummary.getLogSize() - the log size must be either
 unknown or greater than the given value. | 
int | 
getMaxResults()
Number of results to return. 
 | 
Integer | 
getMinBuildNumberToKeep()
A criterion for result summaries that will cause to fetch results with smaller build number, regardless of  
ExpiryCriteria.getMaxBuildCompletedDate() | 
@NotNull PlanKey | 
getPlanKey()
A plan key by which the  
result summaries should be filtered. | 
@NotNull Class<? extends ResultsSummary> | 
getResultsSummaryClass()
The actual class of returned result summaries (eg. 
 | 
boolean | 
isRequireArtifactLinks()
A filter for result summaries that requires them to have a directly or indirectly linked artifact (eg. 
 | 
void | 
setLabelsToExclude(@NotNull Iterable<String> labelsToExclude)  | 
void | 
setMaxBuildCompletedDate(@Nullable org.joda.time.DateTime maxBuildCompletedDate)  | 
void | 
setMaxBuildNumber(@Nullable Integer maxBuildNumber)  | 
void | 
setMaxIgnoredLogSize(@Nullable Long maxIgnoredLogSize)  | 
void | 
setMaxResults(int maxResults)  | 
void | 
setMinBuildNumberToKeep(Integer minBuildNumberToKeep)  | 
void | 
setRequireArtifactLinks(boolean requireArtifactLinks)  | 
public static final int DEFAULT_BATCH_SIZE
protected PlanKey planKey
protected Class<? extends ResultsSummary> resultsSummaryClass
protected boolean requireArtifactLinks
protected Long maxIgnoredLogSize
protected Integer maxBuildNumber
protected Integer minBuildNumberToKeep
protected org.joda.time.DateTime maxBuildCompletedDate
protected com.google.common.collect.ImmutableSet<String> labelsToExclude
protected int maxResults
public MutableExpiryCriteria(@NotNull
                             @NotNull PlanKey planKey)
@NotNull public @NotNull PlanKey getPlanKey()
ExpiryCriteriaresult summaries should be filtered.getPlanKey in interface ExpiryCriteria@NotNull public @NotNull Class<? extends ResultsSummary> getResultsSummaryClass()
ExpiryCriteriaChainResultsSummary or BuildResultsSummary).getResultsSummaryClass in interface ExpiryCriteriapublic boolean isRequireArtifactLinks()
ExpiryCriteria
 Note that this search criterion and ExpiryCriteria.getMaxIgnoredLogSize() criterion are a disjunction (either of the
 conditions must be met).
isRequireArtifactLinks in interface ExpiryCriteria@Nullable public @Nullable Long getMaxIgnoredLogSize()
ExpiryCriteriaImmutableResultsSummary.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).
getMaxIgnoredLogSize in interface ExpiryCriteria@Nullable public @Nullable Integer getMaxBuildNumber()
ExpiryCriteriagetMaxBuildNumber in interface ExpiryCriteria@Nullable public @Nullable org.joda.time.DateTime getMaxBuildCompletedDate()
ExpiryCriteriagetMaxBuildCompletedDate in interface ExpiryCriteria@NotNull public @NotNull Set<String> getLabelsToExclude()
ExpiryCriteriagetLabelsToExclude in interface ExpiryCriteriapublic int getMaxResults()
ExpiryCriteriagetMaxResults in interface ExpiryCriteriapublic void setRequireArtifactLinks(boolean requireArtifactLinks)
public void setMaxIgnoredLogSize(@Nullable
                                 @Nullable Long maxIgnoredLogSize)
public void setMaxBuildNumber(@Nullable
                              @Nullable Integer maxBuildNumber)
public void setMaxBuildCompletedDate(@Nullable
                                     @Nullable org.joda.time.DateTime maxBuildCompletedDate)
public void setLabelsToExclude(@NotNull
                               @NotNull Iterable<String> labelsToExclude)
public void setMaxResults(int maxResults)
public Integer getMinBuildNumberToKeep()
ExpiryCriteriaExpiryCriteria.getMaxBuildCompletedDate()getMinBuildNumberToKeep in interface ExpiryCriteriapublic void setMinBuildNumberToKeep(Integer minBuildNumberToKeep)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.