cz.cuni.amis.utils
Class Throughput

java.lang.Object
  extended by cz.cuni.amis.utils.Throughput

public class Throughput
extends java.lang.Object


Constructor Summary
Throughput(java.lang.String units)
           
 
Method Summary
 void add(long data)
           
 void check()
           
 double getCheckThroughput()
           
 double getCurrentThroughput()
          Return data / secs.
 java.lang.String getName()
           
 double getThroughput()
           
 long getTotalData()
           
 long getTotalRecords()
           
 boolean isReporting()
           
 void setName(java.lang.String name)
           
 void setReporting(boolean reporting)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Throughput

public Throughput(java.lang.String units)
Method Detail

isReporting

public boolean isReporting()

setReporting

public void setReporting(boolean reporting)

getThroughput

public double getThroughput()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

add

public void add(long data)

getTotalData

public long getTotalData()

getTotalRecords

public long getTotalRecords()

getCurrentThroughput

public double getCurrentThroughput()
Return data / secs.

Returns:

getCheckThroughput

public double getCheckThroughput()

check

public void check()