org.apache.jmeter.visualizers

Class Sample

Implemented Interfaces:
Comparable, Serializable

public class Sample
extends Object
implements Serializable, Comparable

Constructor Summary

Sample()
Sample(String name, long data, long average, long deviation, long median, long distributionLine, double throughput, long errorCount, boolean success, long num, long endTime)
Sample(String name, long data, long average, long deviation, long median, long distributionLine, double throughput, long errorCount, boolean success, long num, long endTime, int bytes)
Sample(String name, long data, long average, long deviation, long median, long distributionLine, double throughput, long errorCount, boolean success, long num, long endTime, int bytes, String threadName)
Sample(long data)
Sample(long data, long average, long deviation, double throughput, long median, boolean success)

Method Summary

int
compareTo(Object o)
long
getAverage()
int
getBytes()
long
getCount()
long
getData()
long
getDeviation()
long
getDistributionLine()
long
getEndTime()
long
getErrorCount()
String
getLabel()
long
getMedian()
long
getStartTime()
String
getStartTimeFormatted(Format format)
String
getThreadName()
double
getThroughput()
boolean
isSuccess()

Constructor Details

Sample

public Sample()

Sample

public Sample(String name,
              long data,
              long average,
              long deviation,
              long median,
              long distributionLine,
              double throughput,
              long errorCount,
              boolean success,
              long num,
              long endTime)

Sample

public Sample(String name,
              long data,
              long average,
              long deviation,
              long median,
              long distributionLine,
              double throughput,
              long errorCount,
              boolean success,
              long num,
              long endTime,
              int bytes)

Sample

public Sample(String name,
              long data,
              long average,
              long deviation,
              long median,
              long distributionLine,
              double throughput,
              long errorCount,
              boolean success,
              long num,
              long endTime,
              int bytes,
              String threadName)

Sample

public Sample(long data)

Sample

public Sample(long data,
              long average,
              long deviation,
              double throughput,
              long median,
              boolean success)

Method Details

compareTo

public int compareTo(Object o)

getAverage

public long getAverage()
Returns:
Returns the average.

getBytes

public int getBytes()

getCount

public long getCount()
Returns:
Returns the count.

getData

public long getData()
Returns:
Returns the data (usually elapsed time)

getDeviation

public long getDeviation()
Returns:
Returns the deviation.

getDistributionLine

public long getDistributionLine()
Returns:
Returns the distributionLine.

getEndTime

public long getEndTime()
Returns:
Returns the endTime.

getErrorCount

public long getErrorCount()
Returns:
Returns the errorRate.

getLabel

public String getLabel()
Returns:
Returns the label.

getMedian

public long getMedian()
Returns:
Returns the median.

getStartTime

public long getStartTime()
Returns:
Returns the (calculated) startTime, assuming Data is the elapsed time.

getStartTimeFormatted

public String getStartTimeFormatted(Format format)
Returns:
the start time using the specified format Intended for use from Functors

getThreadName

public String getThreadName()
Returns:
Returns the threadName.

getThroughput

public double getThroughput()
Returns:
Returns the throughput.

isSuccess

public boolean isSuccess()
Returns:
Returns the error.

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.