org.rutil.loadtest
Class Stats

java.lang.Object
  extended by org.rutil.loadtest.Stats

public class Stats
extends java.lang.Object

This class is used to track some runtime stats for the tests

Author:
mohan

Field Summary
 java.util.concurrent.atomic.AtomicLong bytesReceived
           
 java.util.concurrent.atomic.AtomicLong bytesSent
           
 java.util.concurrent.atomic.AtomicInteger errorCount
           
 java.util.concurrent.atomic.AtomicLong totalItems
           
 java.util.concurrent.atomic.AtomicLong totalRequests
           
 java.util.concurrent.atomic.AtomicLong totalTime
           
 
Constructor Summary
Stats()
           
 
Method Summary
 float getAvgLatency()
           
 long getCreateTime()
           
 java.lang.String toString()
           
 void update(Stats stats)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

totalRequests

public java.util.concurrent.atomic.AtomicLong totalRequests

totalTime

public java.util.concurrent.atomic.AtomicLong totalTime

totalItems

public java.util.concurrent.atomic.AtomicLong totalItems

bytesSent

public java.util.concurrent.atomic.AtomicLong bytesSent

bytesReceived

public java.util.concurrent.atomic.AtomicLong bytesReceived

errorCount

public java.util.concurrent.atomic.AtomicInteger errorCount
Constructor Detail

Stats

public Stats()
Method Detail

update

public void update(Stats stats)

getCreateTime

public long getCreateTime()

getAvgLatency

public float getAvgLatency()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object