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 PlanKey |
planKey |
protected boolean |
requireArtifactLinks |
protected Class<? extends ResultsSummary> |
resultsSummaryClass |
| Constructor and Description |
|---|
MutableExpiryCriteria(PlanKey planKey) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getLabelsToExclude()
A set of labellings to exclude from the search (so to avoid expiring build results with certain labels).
|
org.joda.time.DateTime |
getMaxBuildCompletedDate()
A criterion for result summaries completion date - will cause to fetch only results completed before the date.
|
Integer |
getMaxBuildNumber()
A criterion for result summaries that will cause to fetch only results with smaller than or equal build number.
|
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.
|
PlanKey |
getPlanKey()
A plan key by which the
result summaries should be filtered. |
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(Iterable<String> labelsToExclude) |
void |
setMaxBuildCompletedDate(org.joda.time.DateTime maxBuildCompletedDate) |
void |
setMaxBuildNumber(Integer maxBuildNumber) |
void |
setMaxIgnoredLogSize(Long maxIgnoredLogSize) |
void |
setMaxResults(int maxResults) |
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 org.joda.time.DateTime maxBuildCompletedDate
protected com.google.common.collect.ImmutableSet<String> labelsToExclude
protected int maxResults
public MutableExpiryCriteria(@NotNull
PlanKey planKey)
@NotNull public PlanKey getPlanKey()
ExpiryCriteriaresult summaries should be filtered.getPlanKey in interface ExpiryCriteria@NotNull public 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 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 Integer getMaxBuildNumber()
ExpiryCriteriagetMaxBuildNumber in interface ExpiryCriteria@Nullable public org.joda.time.DateTime getMaxBuildCompletedDate()
ExpiryCriteriagetMaxBuildCompletedDate in interface ExpiryCriteria@NotNull public Set<String> getLabelsToExclude()
ExpiryCriteriagetLabelsToExclude in interface ExpiryCriteriapublic int getMaxResults()
ExpiryCriteriagetMaxResults in interface ExpiryCriteriapublic void setRequireArtifactLinks(boolean requireArtifactLinks)
public void setMaxIgnoredLogSize(@Nullable
Long maxIgnoredLogSize)
public void setMaxBuildNumber(@Nullable
Integer maxBuildNumber)
public void setMaxBuildCompletedDate(@Nullable
org.joda.time.DateTime maxBuildCompletedDate)
public void setMaxResults(int maxResults)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.