Interface InternalResultsSummaryAccessor

All Known Implementing Classes:
InternalResultsSummaryAccessorImpl

@Internal public interface InternalResultsSummaryAccessor
Read-only accessor to result data. The results returned by this bean are not filtered by permissions.
Since:
10.0
  • Method Details

    • getLastResultsSummary

      @Nullable <T extends ResultsSummary> T getLastResultsSummary(@NotNull @NotNull PlanKey planKey, Class<T> aClass)
      Get the last ResultsSummary for planKey and Class
      Type Parameters:
      T -
      Parameters:
      planKey -
      aClass -
      Returns:
    • getLastResultsSummary

      @Nullable <T extends ResultsSummary> T getLastResultsSummary(@NotNull @NotNull PlanKey planKey, Class<T> aClass, boolean ignoreSpecsResults)
      Get the last ResultsSummary for planKey and Class with possible skip of specs results.
      Type Parameters:
      T -
      Parameters:
      planKey -
      aClass -
      ignoreSpecsResults -
      Returns:
    • getResultsSummary

      @Nullable @Nullable ResultsSummary getResultsSummary(PlanResultKey planResultKey)
      Lookup the ResultsSummary by PlanResultKey
      Parameters:
      planResultKey -
      Returns:
      resultsSummary
    • getResultsSummary

      @Nullable @Nullable ResultsSummary getResultsSummary(@NotNull @NotNull PlanResultKey planResultKey, ResultDataRead dataRead)
      Lookup the ResultsSummary by PlanResultKey. All lazy initialized collections can be eagerly fetched to avoid session problems. Use with caution - expensive call
      Parameters:
      planResultKey -
      dataRead -
      Returns:
      resultsSummary
    • getResultsSummary

      @Nullable <T extends ResultsSummary> T getResultsSummary(@NotNull @NotNull PlanResultKey planResultKey, @NotNull @NotNull Class<T> aClass)
      Lookup ResultsSummary by PlanResultKey and expected type
      Type Parameters:
      T -
      Parameters:
      planResultKey -
      aClass -
      Returns:
      resultSummary
    • getResultsSummary

      @Nullable <T extends ResultsSummary> T getResultsSummary(@NotNull @NotNull PlanResultKey planResultKey, @NotNull @NotNull Class<T> aClass, ResultDataRead dataRead)
      Lookup the ResultsSummary by PlanResultKey. All lazy initialized collections can be eagerly fetched to avoid session problems. Use with caution - expensive call
      Parameters:
      planResultKey -
      dataRead -
      Returns:
      resultsSummary
    • getAveragePlanExecutionDuration

      long getAveragePlanExecutionDuration(@NotNull @NotNull ImmutablePlan plan, int numberOfResults)
      Get average duration from n last results summaries in finished state for a plan. Results in SUCCESSFUL state are preferred; only if there are none those in FAILED state are selected.
      Parameters:
      plan -
      numberOfResults - amount of results to be taken into account for average calculation
      Returns:
      average duration in milliseconds or 0 if there is no results
    • findBuildResultNumbersRange

      @NotNull @NotNull Range<Integer> findBuildResultNumbersRange(@NotNull @NotNull PlanKey planKey)
      Finds minimum and maximum build number for a plan. Works for both chains and jobs.
      Parameters:
      planKey -
      Returns:
      (min, max) pair or (0,0) if there are no results.