org.bootchart.common
Class DiskTPutSample

java.lang.Object
  extended by org.bootchart.common.Sample
      extended by org.bootchart.common.DiskTPutSample

public class DiskTPutSample
extends Sample

Disk I/O throughput sample.


Field Summary
 double read
          Read throughput (KB/s).
 double write
          Write throughput (KB/s).
 
Fields inherited from class org.bootchart.common.Sample
time, TIME_FORMAT
 
Constructor Summary
DiskTPutSample(Date time, double read, double write)
          Creates a new sample.
 
Method Summary
static double getMaxDiskTPut(List ioSampleList)
          Returns the maximum throughput seen in the sample list.
 String toString()
          Returns the string representation of the sample.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

read

public double read
Read throughput (KB/s).


write

public double write
Write throughput (KB/s).

Constructor Detail

DiskTPutSample

public DiskTPutSample(Date time,
                      double read,
                      double write)
Creates a new sample.

Parameters:
time - sample time
read - read throughput
write - write throughput
Method Detail

toString

public String toString()
Returns the string representation of the sample.

Overrides:
toString in class Object
Returns:
string representation

getMaxDiskTPut

public static double getMaxDiskTPut(List ioSampleList)
Returns the maximum throughput seen in the sample list.

Parameters:
ioSampleList - iostat sample list
Returns:
maximum throughput