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()
ExpiryCriteria
result summaries
should be filtered.getPlanKey
in interface ExpiryCriteria
@NotNull public Class<? extends ResultsSummary> getResultsSummaryClass()
ExpiryCriteria
ChainResultsSummary
or BuildResultsSummary
).getResultsSummaryClass
in interface ExpiryCriteria
public 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()
ExpiryCriteria
ImmutableResultsSummary.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()
ExpiryCriteria
getMaxBuildNumber
in interface ExpiryCriteria
@Nullable public org.joda.time.DateTime getMaxBuildCompletedDate()
ExpiryCriteria
getMaxBuildCompletedDate
in interface ExpiryCriteria
@NotNull public Set<String> getLabelsToExclude()
ExpiryCriteria
getLabelsToExclude
in interface ExpiryCriteria
public int getMaxResults()
ExpiryCriteria
getMaxResults
in interface ExpiryCriteria
public 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 © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.