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 Summary
Fields Modifier and Type Field Description protected ThreadLocal<DecimalFormat>
dataFormat
static String
DEFAULT_PERCENTILES
protected boolean
excludeResponseTime
Exclude response time of errored samplesstatic double
FIFTY_PERCENT
protected boolean
isCalculatedPercentilesValues
static Logger
LOGGER
static double
NINETY_FIVE_PERCENT
static double
NINETY_PERCENT
static double
ONE_HUNDRED_PERCENT
protected ThreadLocal<DecimalFormat>
percentFormat
protected Map<Double,Long>
percentilesDiffValues
protected Map<Double,Long>
percentilesValues
protected boolean
showTrendGraphs
static double
ZERO_PERCENT
-
Constructor Summary
Constructors Constructor Description AbstractReport()
-
Method Summary
-
-
-
Field Detail
-
LOGGER
public static final Logger LOGGER
-
ZERO_PERCENT
public static final double ZERO_PERCENT
- See Also:
- Constant Field Values
-
ONE_HUNDRED_PERCENT
public static final double ONE_HUNDRED_PERCENT
- See Also:
- Constant Field Values
-
NINETY_PERCENT
public static final double NINETY_PERCENT
- See Also:
- Constant Field Values
-
NINETY_FIVE_PERCENT
public static final double NINETY_FIVE_PERCENT
- See Also:
- Constant Field Values
-
FIFTY_PERCENT
public static final double FIFTY_PERCENT
- See Also:
- Constant Field Values
-
DEFAULT_PERCENTILES
public static final String DEFAULT_PERCENTILES
- See Also:
- Constant Field Values
-
percentFormat
protected final ThreadLocal<DecimalFormat> percentFormat
-
dataFormat
protected final ThreadLocal<DecimalFormat> dataFormat
-
isCalculatedPercentilesValues
protected boolean isCalculatedPercentilesValues
-
excludeResponseTime
protected boolean excludeResponseTime
Exclude response time of errored samples
-
showTrendGraphs
protected boolean showTrendGraphs
-
-
Method Detail
-
countErrors
public abstract int countErrors()
-
errorPercent
public abstract double errorPercent()
-
calculatePercentiles
public abstract void calculatePercentiles()
-
calculateDiffPercentiles
public abstract void calculateDiffPercentiles()
-
errorPercentFormated
public String errorPercentFormated()
-
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)
-
-