Class AbstractReport

java.lang.Object
hudson.plugins.performance.reports.AbstractReport
Direct Known Subclasses:
PerformanceReport, UriReport

public abstract class AbstractReport extends Object
Abstract class for classes with samplesCount, error, mean, average, 90 line, 95 line, min and max attributes
  • Field Details

    • LOGGER

      public static final Logger LOGGER
    • ZERO_PERCENT

      public static final double ZERO_PERCENT
      See Also:
    • ONE_HUNDRED_PERCENT

      public static final double ONE_HUNDRED_PERCENT
      See Also:
    • NINETY_PERCENT

      public static final double NINETY_PERCENT
      See Also:
    • NINETY_FIVE_PERCENT

      public static final double NINETY_FIVE_PERCENT
      See Also:
    • FIFTY_PERCENT

      public static final double FIFTY_PERCENT
      See Also:
    • DEFAULT_PERCENTILES

      public static final String DEFAULT_PERCENTILES
      See Also:
    • percentFormat

      protected final ThreadLocal<DecimalFormat> percentFormat
    • dataFormat

      protected final ThreadLocal<DecimalFormat> dataFormat
    • percentilesValues

      protected Map<Double,Long> percentilesValues
    • percentilesDiffValues

      protected Map<Double,Long> percentilesDiffValues
    • isCalculatedPercentilesValues

      protected boolean isCalculatedPercentilesValues
    • excludeResponseTime

      protected boolean excludeResponseTime
      Exclude response time of errored samples
    • showTrendGraphs

      protected boolean showTrendGraphs
  • Constructor Details

    • AbstractReport

      public AbstractReport()
  • Method Details

    • countErrors

      public abstract int countErrors()
    • errorPercent

      public abstract double errorPercent()
    • calculatePercentiles

      public abstract void calculatePercentiles()
    • calculateDiffPercentiles

      public abstract void calculateDiffPercentiles()
    • errorPercentFormated

      public String errorPercentFormated()
    • checkPercentileAndSet

      protected void checkPercentileAndSet(Double key, Long value)
    • parsePercentiles

      protected List<Double> parsePercentiles(String percentiles)
    • getAverage

      public abstract long getAverage()
    • getAverageFormated

      public String getAverageFormated()
    • getMedian

      public abstract long getMedian()
    • getMeanFormated

      public String getMeanFormated()
    • get90Line

      public abstract long get90Line()
    • get90LineFormated

      public String get90LineFormated()
    • get95Line

      public abstract long get95Line()
    • get95LineFormated

      public String get95LineFormated()
    • getMax

      public abstract long getMax()
    • getMaxFormated

      public String getMaxFormated()
    • getMin

      public abstract long getMin()
    • samplesCount

      public abstract int samplesCount()
    • getHttpCode

      public abstract String getHttpCode()
    • getAverageDiff

      public abstract long getAverageDiff()
    • getMedianDiff

      public abstract long getMedianDiff()
    • get90LineDiff

      public abstract long get90LineDiff()
    • get95LineDiff

      public abstract long get95LineDiff()
    • getErrorPercentDiff

      public abstract double getErrorPercentDiff()
    • getLastBuildHttpCodeIfChanged

      public abstract String getLastBuildHttpCodeIfChanged()
    • getSamplesCountDiff

      public abstract int getSamplesCountDiff()
    • isExcludeResponseTime

      public boolean isExcludeResponseTime()
    • setExcludeResponseTime

      public void setExcludeResponseTime(boolean excludeResponseTime)
    • isShowTrendGraphs

      public boolean isShowTrendGraphs()
    • setShowTrendGraphs

      public void setShowTrendGraphs(boolean showTrendGraphs)
    • isIncludeResponseTime

      protected boolean isIncludeResponseTime(HttpSample sample)
    • getPercentilesValues

      public Map<Double,Long> getPercentilesValues()
    • getPercentilesDiffValues

      public Map<Double,Long> getPercentilesDiffValues()
    • getPercentileLabel

      public String getPercentileLabel(Double perc)