Apache JMeter
2.1.1

org.apache.jmeter.visualizers
Class Sample

java.lang.Object
  extended byorg.apache.jmeter.visualizers.Sample
All Implemented Interfaces:
Comparable, Serializable

public class Sample
extends Object
implements Serializable, Comparable

Version:
1.0
Author:
Michael Stover
See Also:
Serialized Form

Field Summary
 long average
           
 int bytes
           
 long count
           
 long data
           
 long deviation
           
 long distributionLine
           
 long endTime
           
 long errorCount
           
 String label
           
 long median
           
 boolean success
           
 double throughput
           
 
Constructor Summary
Sample()
           
Sample(long data)
           
Sample(long data, long average, long deviation, double throughput, long median, boolean success)
          Constructor for the Sample object
Sample(String name, long data, long average, long deviation, long median, long distributionLine, double throughput, long errorCount, boolean success, long num, long endTime)
           
 
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()
           
 double getThroughput()
           
 boolean isSuccess()
           
 void setAverage(long average)
           
 void setBytes(int size)
           
 void setCount(long count)
           
 void setData(long data)
           
 void setDeviation(long deviation)
           
 void setDistributionLine(long distributionLine)
           
 void setEndTime(long endTime)
           
 void setErrorCount(long errorCount)
           
 void setLabel(String label)
           
 void setMedian(long median)
           
 void setSuccess(boolean success)
           
 void setThroughput(double throughput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public long data

average

public long average

median

public long median

distributionLine

public long distributionLine

deviation

public long deviation

throughput

public double throughput

errorCount

public long errorCount

success

public boolean success

label

public String label

count

public long count

endTime

public long endTime

bytes

public int bytes
Constructor Detail

Sample

public Sample(long data,
              long average,
              long deviation,
              double throughput,
              long median,
              boolean success)
Constructor for the Sample object

Parameters:
data - Description of Parameter
average - Description of Parameter
deviation - Description of Parameter

Sample

public Sample(long data)

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()
Method Detail

getBytes

public int getBytes()

setBytes

public void setBytes(int size)

getAverage

public long getAverage()
Returns:
Returns the average.

setAverage

public void setAverage(long average)
Parameters:
average - The average to set.

getCount

public long getCount()
Returns:
Returns the count.

setCount

public void setCount(long count)
Parameters:
count - The count to set.

getData

public long getData()
Returns:
Returns the data.

setData

public void setData(long data)
Parameters:
data - The data to set.

getDeviation

public long getDeviation()
Returns:
Returns the deviation.

setDeviation

public void setDeviation(long deviation)
Parameters:
deviation - The deviation to set.

getDistributionLine

public long getDistributionLine()
Returns:
Returns the distributionLine.

setDistributionLine

public void setDistributionLine(long distributionLine)
Parameters:
distributionLine - The distributionLine to set.

isSuccess

public boolean isSuccess()
Returns:
Returns the error.

setSuccess

public void setSuccess(boolean success)

getErrorCount

public long getErrorCount()
Returns:
Returns the errorRate.

setErrorCount

public void setErrorCount(long errorCount)

getLabel

public String getLabel()
Returns:
Returns the label.

setLabel

public void setLabel(String label)
Parameters:
label - The label to set.

getMedian

public long getMedian()
Returns:
Returns the median.

setMedian

public void setMedian(long median)
Parameters:
median - The median to set.

getThroughput

public double getThroughput()
Returns:
Returns the throughput.

setThroughput

public void setThroughput(double throughput)
Parameters:
throughput - The throughput to set.

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getEndTime

public long getEndTime()
Returns:
Returns the endTime.

setEndTime

public void setEndTime(long endTime)
Parameters:
endTime - The endTime to set.

Apache JMeter
2.1.1

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