Class MutableExpiryCriteria

    • Field Detail

      • planKey

        protected PlanKey planKey
      • requireArtifactLinks

        protected boolean requireArtifactLinks
      • maxIgnoredLogSize

        protected Long maxIgnoredLogSize
      • maxBuildNumber

        protected Integer maxBuildNumber
      • minBuildNumberToKeep

        protected Integer minBuildNumberToKeep
      • maxBuildCompletedDate

        protected org.joda.time.DateTime maxBuildCompletedDate
      • labelsToExclude

        protected com.google.common.collect.ImmutableSet<String> labelsToExclude
      • maxResults

        protected long maxResults
    • Constructor Detail

      • MutableExpiryCriteria

        public MutableExpiryCriteria​(@NotNull
                                     @NotNull PlanKey planKey)
    • Method Detail

      • isRequireArtifactLinks

        public boolean isRequireArtifactLinks()
        Description copied from interface: ExpiryCriteria
        A 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:
        isRequireArtifactLinks in interface ExpiryCriteria
      • getMaxBuildNumber

        @Nullable
        public @Nullable Integer getMaxBuildNumber()
        Description copied from interface: ExpiryCriteria
        A criterion for result summaries that will cause to fetch only results with smaller than or equal build number.
        Specified by:
        getMaxBuildNumber in interface ExpiryCriteria
        Returns:
        the maximum result build number or null, if the criterion is not set
      • getMaxBuildCompletedDate

        @Nullable
        public @Nullable org.joda.time.DateTime getMaxBuildCompletedDate()
        Description copied from interface: ExpiryCriteria
        A criterion for result summaries completion date - will cause to fetch only results completed before the date.
        Specified by:
        getMaxBuildCompletedDate in interface ExpiryCriteria
        Returns:
        the date or null, if the criterion is not set
      • getLabelsToExclude

        @NotNull
        public @NotNull Set<String> getLabelsToExclude()
        Description copied from interface: ExpiryCriteria
        A set of labellings to exclude from the search (so to avoid expiring build results with certain labels).
        Specified by:
        getLabelsToExclude in interface ExpiryCriteria
        Returns:
        an immutable set of labels to exclude
      • setRequireArtifactLinks

        public void setRequireArtifactLinks​(boolean requireArtifactLinks)
      • setMaxIgnoredLogSize

        public void setMaxIgnoredLogSize​(@Nullable
                                         @Nullable Long maxIgnoredLogSize)
      • setMaxBuildNumber

        public void setMaxBuildNumber​(@Nullable
                                      @Nullable Integer maxBuildNumber)
      • setMaxBuildCompletedDate

        public void setMaxBuildCompletedDate​(@Nullable
                                             @Nullable org.joda.time.DateTime maxBuildCompletedDate)
      • setLabelsToExclude

        public void setLabelsToExclude​(@NotNull
                                       @NotNull Iterable<String> labelsToExclude)
      • setMaxResults

        public void setMaxResults​(long maxResults)
      • setMinBuildNumberToKeep

        public void setMinBuildNumberToKeep​(Integer minBuildNumberToKeep)